]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-deref-ptr.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-deref-ptr.stderr
1 error[E0658]: dereferencing raw pointers in statics is unstable
2   --> $DIR/const-deref-ptr.rs:4:29
3    |
4 LL |     static C: u64 = unsafe {*(0xdeadbeef as *const u64)};
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`.