1
Fork 0
rust/src/test/ui/static/static-mut-requires-unsafe.rs

8 lines
181 B
Rust
Raw Normal View History

static mut a: isize = 3;
2013-06-21 18:46:34 -07:00
fn main() {
a += 3; //~ ERROR: requires unsafe
a = 4; //~ ERROR: requires unsafe
let _b = a; //~ ERROR: requires unsafe
}