mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
232 B
Rust
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() {}
|