]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/miri_unleashed/mutable_references.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / consts / miri_unleashed / mutable_references.stderr
1 error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
2   --> $DIR/mutable_references.rs:36:5
3    |
4 LL |     *OH_YES = 99;
5    |     ^^^^^^^^^^^^ cannot assign
6
7 warning: skipping const checks
8    |
9 help: skipping check that does not even have a feature gate
10   --> $DIR/mutable_references.rs:9:26
11    |
12 LL | static FOO: &&mut u32 = &&mut 42;
13    |                          ^^^^^^^
14 help: skipping check that does not even have a feature gate
15   --> $DIR/mutable_references.rs:13:23
16    |
17 LL | static BAR: &mut () = &mut ();
18    |                       ^^^^^^^
19 help: skipping check that does not even have a feature gate
20   --> $DIR/mutable_references.rs:18:28
21    |
22 LL | static BOO: &mut Foo<()> = &mut Foo(());
23    |                            ^^^^^^^^^^^^
24 help: skipping check that does not even have a feature gate
25   --> $DIR/mutable_references.rs:26:8
26    |
27 LL |     x: &UnsafeCell::new(42),
28    |        ^^^^^^^^^^^^^^^^^^^^
29 help: skipping check that does not even have a feature gate
30   --> $DIR/mutable_references.rs:30:27
31    |
32 LL | static OH_YES: &mut i32 = &mut 42;
33    |                           ^^^^^^^
34
35 error: aborting due to previous error; 1 warning emitted
36
37 For more information about this error, try `rustc --explain E0594`.