mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 07:16:54 +00:00
10 lines
206 B
Rust
10 lines
206 B
Rust
extern "C" {
|
|
static error_message_count: u32;
|
|
}
|
|
|
|
pub static BAZ: u32 = *&error_message_count;
|
|
//~^ ERROR use of extern static is unsafe and requires
|
|
//~| ERROR cannot access extern static
|
|
|
|
fn main() {}
|