mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
8 lines
179 B
Rust
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
|
|
}
|