rust/tests/compile-fail/extern_static.rs
2020-07-27 23:32:15 +02:00

11 lines
232 B
Rust

#![feature(raw_ref_op)]
//! Even referencing an unknown `extern static` already triggers an error.
extern "C" {
static mut FOO: i32;
}
fn main() {
let _val = unsafe { &raw const FOO }; //~ ERROR is not supported by Miri
}