summary refs log tree commit diff
path: root/src/test/ui/const-deref-ptr.stderr
blob: 60f9a3a37ba99ccc05ca6b5ab487dda54fe181ba (plain)
1
2
3
4
5
6
7
8
error[E0396]: raw pointers cannot be dereferenced in statics
  --> $DIR/const-deref-ptr.rs:14:29
   |
14 |     static C: u64 = unsafe {*(0xdeadbeef as *const u64)}; //~ ERROR E0396
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer in constant

error: aborting due to previous error