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