We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b07fc3 commit 390899eCopy full SHA for 390899e
tests/compile-fail/extern_static.rs
@@ -0,0 +1,10 @@
1
+#![feature(raw_ref_op)]
2
+//! Even referencing an unknown `extern static` already triggers an error.
3
+
4
+extern "C" {
5
+ static mut FOO: i32;
6
+}
7
8
+fn main() {
9
+ let _val = unsafe { &raw const FOO }; //~ ERROR is not supported by Miri
10
0 commit comments