rust/tests/ui/extern/issue-36122-accessing-externed-dst.rs

8 lines
179 B
Rust

fn main() {
extern "C" {
static symbol: [usize]; //~ ERROR: the size for values of type
}
println!("{}", symbol[0]);
//~^ ERROR: extern static is unsafe
}