]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0396.stderr
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0396.stderr
1 error[E0658]: dereferencing raw pointers in constants is unstable
2 --> $DIR/E0396.rs:5:28
3 |
4 LL | const VALUE: u8 = unsafe { *REG_ADDR };
5 | ^^^^^^^^^
6 |
7 = note: for more information, see https://github.com/rust-lang/rust/issues/51911
8 = help: add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0658`.