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