2024-08-17 12:49:35 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2024-08-26 12:51:16 +00:00
|
|
|
--> $DIR/ub-write-through-immutable.rs:10:5
|
2023-11-26 15:57:13 +00:00
|
|
|
|
|
|
|
|
LL | *ptr = 0;
|
2024-08-17 12:49:35 +00:00
|
|
|
| ^^^^^^^^ writing through a pointer that was derived from a shared (immutable) reference
|
2023-11-26 15:57:13 +00:00
|
|
|
|
2024-08-17 12:49:35 +00:00
|
|
|
error[E0080]: evaluation of constant value failed
|
2024-08-26 12:51:16 +00:00
|
|
|
--> $DIR/ub-write-through-immutable.rs:17:5
|
2023-11-26 15:57:13 +00:00
|
|
|
|
|
|
|
|
LL | *ptr = 0;
|
2024-08-17 12:49:35 +00:00
|
|
|
| ^^^^^^^^ writing through a pointer that was derived from a shared (immutable) reference
|
2023-11-26 15:57:13 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2024-08-17 12:49:35 +00:00
|
|
|
For more information about this error, try `rustc --explain E0080`.
|