2021-10-05 08:55:57 +00:00
|
|
|
error[E0080]: could not evaluate static initializer
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/const-deref-ptr.rs:4:29
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-07-02 17:00:07 +00:00
|
|
|
LL | static C: u64 = unsafe {*(0xdeadbeef as *const u64)};
|
2023-08-01 15:11:00 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ memory access failed: 0xdeadbeef[noalloc] is a dangling pointer (it has no provenance)
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2021-10-05 08:55:57 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|