summary refs log tree commit diff
path: root/src/test/ui/consts/miri_unleashed/mutable_references.stderr
blob: 3e1300c63c17d6a737ecea4fd9806b2d5c6fb6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
warning: skipping const checks
  --> $DIR/mutable_references.rs:28:8
   |
LL |     x: &UnsafeCell::new(42),
   |        ^^^^^^^^^^^^^^^^^^^^

error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
  --> $DIR/mutable_references.rs:39:5
   |
LL |     *OH_YES = 99;
   |     ^^^^^^^^^^^^ cannot assign

error: aborting due to previous error

For more information about this error, try `rustc --explain E0594`.