1 warning: skipping const checks
2 --> $DIR/mutable_references.rs:8:26
4 LL | static FOO: &&mut u32 = &&mut 42;
7 warning: skipping const checks
8 --> $DIR/mutable_references.rs:11:23
10 LL | static BAR: &mut () = &mut ();
13 warning: skipping const checks
14 --> $DIR/mutable_references.rs:16:28
16 LL | static BOO: &mut Foo<()> = &mut Foo(());
19 warning: skipping const checks
20 --> $DIR/mutable_references.rs:26:8
22 LL | x: &UnsafeCell::new(42),
23 | ^^^^^^^^^^^^^^^^^^^^
25 warning: skipping const checks
26 --> $DIR/mutable_references.rs:30:27
28 LL | static OH_YES: &mut i32 = &mut 42;
31 error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
32 --> $DIR/mutable_references.rs:37:5
35 | ^^^^^^^^^^^^ cannot assign
37 error: aborting due to previous error
39 For more information about this error, try `rustc --explain E0594`.