1 error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
2 --> $DIR/mutable_references.rs:36:5
5 | ^^^^^^^^^^^^ cannot assign
7 warning: skipping const checks
9 help: skipping check that does not even have a feature gate
10 --> $DIR/mutable_references.rs:9:26
12 LL | static FOO: &&mut u32 = &&mut 42;
14 help: skipping check that does not even have a feature gate
15 --> $DIR/mutable_references.rs:13:23
17 LL | static BAR: &mut () = &mut ();
19 help: skipping check that does not even have a feature gate
20 --> $DIR/mutable_references.rs:18:28
22 LL | static BOO: &mut Foo<()> = &mut Foo(());
24 help: skipping check that does not even have a feature gate
25 --> $DIR/mutable_references.rs:26:8
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
32 LL | static OH_YES: &mut i32 = &mut 42;
35 error: aborting due to previous error; 1 warning emitted
37 For more information about this error, try `rustc --explain E0594`.