mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 17:22:19 +00:00
9 lines
188 B
Rust
9 lines
188 B
Rust
extern "C" {
|
|
pub static symbol: u32;
|
|
}
|
|
static CRASH: u32 = symbol;
|
|
//~^ ERROR use of extern static is unsafe and requires
|
|
//~| ERROR cannot access extern static `symbol`
|
|
|
|
fn main() {}
|