2021-07-13 00:21:35 +02:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2021-10-05 04:55:57 -04:00
|
|
|
--> $DIR/const_raw_ptr_ops2.rs:7:26
|
2020-06-12 19:25:14 +02:00
|
|
|
|
|
|
|
|
LL | const Z2: i32 = unsafe { *(42 as *const i32) };
|
2022-07-03 15:46:22 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: 0x2a[noalloc] is a dangling pointer (it has no provenance)
|
2020-06-12 19:25:14 +02:00
|
|
|
|
2021-07-13 00:21:35 +02:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2021-10-05 04:55:57 -04:00
|
|
|
--> $DIR/const_raw_ptr_ops2.rs:9:26
|
2020-06-12 19:25:14 +02:00
|
|
|
|
|
|
|
|
LL | const Z3: i32 = unsafe { *(44 as *const i32) };
|
2022-07-03 15:46:22 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ dereferencing pointer failed: 0x2c[noalloc] is a dangling pointer (it has no provenance)
|
2020-06-12 19:25:14 +02:00
|
|
|
|
2021-07-10 11:33:42 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2020-06-12 19:25:14 +02:00
|
|
|
|
2021-07-13 00:21:35 +02:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|