blob: ea3ba0950079e418356393def69a000c5b154316 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
static mut a: isize = 3;
fn main() {
a += 3; //~ ERROR: requires unsafe
a = 4; //~ ERROR: requires unsafe
let _b = a; //~ ERROR: requires unsafe
}
|