summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/ub-write-through-immutable.stderr
blob: d30df33bc55f95a4fb4a978a3f50c1933cb55cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0080]: evaluation of constant value failed
  --> $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
  --> $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`.