mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 02:40:45 +00:00
8 lines
181 B
Rust
8 lines
181 B
Rust
static mut a: isize = 3;
|
|
|
|
fn main() {
|
|
a += 3; //~ ERROR: requires unsafe
|
|
a = 4; //~ ERROR: requires unsafe
|
|
let _b = a; //~ ERROR: requires unsafe
|
|
}
|