We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80d0d92 commit f249fddCopy full SHA for f249fdd
tests/ui/unpretty/unsafe-attr.rs
@@ -0,0 +1,11 @@
1
+//@ compile-flags: -Zunpretty=normal
2
+//@ check-pass
3
+
4
+#[no_mangle]
5
+extern "C" fn foo() {}
6
7
+#[unsafe(no_mangle)]
8
+extern "C" fn bar() {}
9
10
+#[cfg_attr(FALSE, unsafe(no_mangle))]
11
+extern "C" fn zoo() {}
tests/ui/unpretty/unsafe-attr.stdout
0 commit comments