1 error: use of extern static is unsafe and requires unsafe function or block (error E0133)
2 --> $DIR/safe-extern-statics.rs:13:13
4 LL | let a = A; //~ ERROR use of extern static is unsafe
7 = note: #[deny(safe_extern_statics)] on by default
8 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
10 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
12 error: use of extern static is unsafe and requires unsafe function or block (error E0133)
13 --> $DIR/safe-extern-statics.rs:15:14
15 LL | let ra = &A; //~ ERROR use of extern static is unsafe
18 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
19 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
20 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
22 error: use of extern static is unsafe and requires unsafe function or block (error E0133)
23 --> $DIR/safe-extern-statics.rs:17:14
25 LL | let xa = XA; //~ ERROR use of extern static is unsafe
28 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
29 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
30 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
32 error: use of extern static is unsafe and requires unsafe function or block (error E0133)
33 --> $DIR/safe-extern-statics.rs:19:15
35 LL | let xra = &XA; //~ ERROR use of extern static is unsafe
38 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39 = note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
40 = note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
42 error: aborting due to 4 previous errors