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