1 error[E0396]: raw pointers cannot be dereferenced in statics
2 --> $DIR/const-deref-ptr.rs:14:29
4 LL | static C: u64 = unsafe {*(0xdeadbeef as *const u64)}; //~ ERROR E0396
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereference of raw pointer in constant
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0396`.