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

12 lines
232 B
Rust

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