rust/tests/ui/consts/const-eval/ub-write-through-immutable.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
546 B
Plaintext
Raw Normal View History

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