rust/src/test/ui/error-codes/E0396.stderr

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-04-10 23:40:12 +00:00
error[E0658]: dereferencing raw pointers in constants is unstable
2018-12-25 15:56:47 +00:00
--> $DIR/E0396.rs:5:28
2018-02-08 03:35:35 +00:00
|
LL | const VALUE: u8 = unsafe { *REG_ADDR };
| ^^^^^^^^^
|
2020-02-07 12:07:02 +00:00
= note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
= help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
2018-02-08 03:35:35 +00:00
2020-12-19 19:25:27 +00:00
error[E0658]: dereferencing raw pointers in constant functions is unstable
--> $DIR/E0396.rs:12:11
|
LL | match *INFALLIBLE {}
| ^^^^^^^^^^^
|
= note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
= help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
error[E0658]: dereferencing raw pointers in constants is unstable
--> $DIR/E0396.rs:15:36
|
LL | const BAD: () = unsafe { match *INFALLIBLE {} };
| ^^^^^^^^^^^
|
= note: see issue #51911 <https://github.com/rust-lang/rust/issues/51911> for more information
= help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
error: aborting due to 3 previous errors
2018-02-08 03:35:35 +00:00
For more information about this error, try `rustc --explain E0658`.