]> git.lizzy.rs Git - rust.git/blob - tests/compile-fail/extern_static.rs
test referencing unsupported extern static
[rust.git] / tests / compile-fail / extern_static.rs
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 }