mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
10 lines
173 B
Rust
10 lines
173 B
Rust
extern "C" {
|
|
static mut a: i32;
|
|
}
|
|
|
|
fn main() {
|
|
a += 3; //~ ERROR: requires unsafe
|
|
a = 4; //~ ERROR: requires unsafe
|
|
let _b = a; //~ ERROR: requires unsafe
|
|
}
|