about summary refs log tree commit diff
path: root/tests/ui/static/static-mut-requires-unsafe.rs
blob: 413b97e431d3045b25948246086078712bb86253 (plain)
1
2
3
4
5
6
7
static mut a: isize = 3;

fn main() {
    a += 3;         //~ ERROR: requires unsafe
    a = 4;          //~ ERROR: requires unsafe
    let _b = a;     //~ ERROR: requires unsafe
}