]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/mutable_references.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / miri_unleashed / mutable_references.stderr
1 warning: skipping const checks
2   --> $DIR/mutable_references.rs:8:26
3    |
4 LL | static FOO: &&mut u32 = &&mut 42;
5    |                          ^^^^^^^
6
7 warning: skipping const checks
8   --> $DIR/mutable_references.rs:11:23
9    |
10 LL | static BAR: &mut () = &mut ();
11    |                       ^^^^^^^
12
13 warning: skipping const checks
14   --> $DIR/mutable_references.rs:16:28
15    |
16 LL | static BOO: &mut Foo<()> = &mut Foo(());
17    |                            ^^^^^^^^^^^^
18
19 warning: skipping const checks
20   --> $DIR/mutable_references.rs:26:8
21    |
22 LL |     x: &UnsafeCell::new(42),
23    |        ^^^^^^^^^^^^^^^^^^^^
24
25 warning: skipping const checks
26   --> $DIR/mutable_references.rs:30:27
27    |
28 LL | static OH_YES: &mut i32 = &mut 42;
29    |                           ^^^^^^^
30
31 error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
32   --> $DIR/mutable_references.rs:37:5
33    |
34 LL |     *OH_YES = 99;
35    |     ^^^^^^^^^^^^ cannot assign
36
37 error: aborting due to previous error
38