rust/src/test/ui/safe-extern-statics.stderr

44 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: use of extern static is unsafe and requires unsafe function or block (error E0133)
2018-12-25 09:56:47 -06:00
--> $DIR/safe-extern-statics.rs:13:13
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let a = A;
2018-08-08 07:28:26 -05:00
| ^
|
= note: #[deny(safe_extern_statics)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
error: use of extern static is unsafe and requires unsafe function or block (error E0133)
2018-12-25 09:56:47 -06:00
--> $DIR/safe-extern-statics.rs:15:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let ra = &A;
2018-08-08 07:28:26 -05:00
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
error: use of extern static is unsafe and requires unsafe function or block (error E0133)
2018-12-25 09:56:47 -06:00
--> $DIR/safe-extern-statics.rs:17:14
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let xa = XA;
2018-08-08 07:28:26 -05:00
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
error: use of extern static is unsafe and requires unsafe function or block (error E0133)
2018-12-25 09:56:47 -06:00
--> $DIR/safe-extern-statics.rs:19:15
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let xra = &XA;
2018-08-08 07:28:26 -05:00
| ^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #36247 <https://github.com/rust-lang/rust/issues/36247>
= note: extern statics are not controlled by the Rust type system: invalid data, aliasing violations or data races will cause undefined behavior
error: aborting due to 4 previous errors