mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +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
|
|
}
|