rust/tests/ui/statics/issue-14227.rs
2023-01-11 09:32:08 +00:00

11 lines
205 B
Rust

// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
extern "C" {
pub static symbol: u32;
}
static CRASH: u32 = symbol;
//~^ ERROR use of extern static is unsafe and requires
fn main() {}