1 #![allow(unused, dead_code)]
3 static mut FOO: u64 = 0;
6 unsafe {static BAR: u64 = FOO;}
7 //~^ ERROR: use of mutable static is unsafe
8 //~| NOTE: use of mutable static
9 //~| NOTE: mutable statics can be mutated by multiple threads
10 //~| NOTE: items do not inherit unsafety
13 unsafe fn unsafe_call() {}
16 //~^ NOTE: items do not inherit unsafety
19 //~^ ERROR: call to unsafe function
20 //~| NOTE: call to unsafe function
21 //~| NOTE: consult the function's documentation