1 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
2 --> $DIR/safe-extern-statics-mut.rs:21:13
4 LL | let b = B; //~ ERROR use of mutable static is unsafe
5 | ^ use of mutable static
7 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
9 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
10 --> $DIR/safe-extern-statics-mut.rs:22:14
12 LL | let rb = &B; //~ ERROR use of mutable static is unsafe
13 | ^^ use of mutable static
15 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
17 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
18 --> $DIR/safe-extern-statics-mut.rs:23:14
20 LL | let xb = XB; //~ ERROR use of mutable static is unsafe
21 | ^^ use of mutable static
23 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
25 error[E0133]: use of mutable static is unsafe and requires unsafe function or block
26 --> $DIR/safe-extern-statics-mut.rs:24:15
28 LL | let xrb = &XB; //~ ERROR use of mutable static is unsafe
29 | ^^^ use of mutable static
31 = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
33 error: aborting due to 4 previous errors
35 For more information about this error, try `rustc --explain E0133`.