2021-10-05 03:55:57 -05:00
|
|
|
error[E0080]: could not evaluate static initializer
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-deref-ptr.rs:4:29
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-07-02 12:00:07 -05:00
|
|
|
LL | static C: u64 = unsafe {*(0xdeadbeef as *const u64)};
|
2022-07-03 14:46:22 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: 0xdeadbeef[noalloc] is a dangling pointer (it has no provenance)
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2021-10-05 03:55:57 -05:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|