]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-deref-ptr.stderr
Rollup merge of #106951 - tmiasko:rm-simplify-initial, r=oli-obk
[rust.git] / tests / 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    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: 0xdeadbeef[noalloc] is a dangling pointer (it has no provenance)
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0080`.