We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8635a5c commit 146578cCopy full SHA for 146578c
tests/source/unsafe-mod.rs
@@ -0,0 +1,7 @@
1
+// These are supported by rustc syntactically but not semantically.
2
+
3
+#[cfg(any())]
4
+unsafe mod m { }
5
6
7
+unsafe extern "C++" { }
tests/target/unsafe-mod.rs
+unsafe mod m {}
+unsafe extern "C++" {}
0 commit comments