]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-deref-ptr.stderr
Rollup merge of #85766 - workingjubilee:file-options, r=yaahc
[rust.git] / src / test / ui / consts / const-deref-ptr.stderr
1 error[E0080]: could not evaluate static initializer
2   --> $DIR/const-deref-ptr.rs:4:29
3    |
4 LL |     static C: u64 = unsafe {*(0xdeadbeef as *const u64)};
5    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 0xdeadbeef is not a valid pointer
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0080`.