warning: skipping const checks
- --> $DIR/mutable_references.rs:30:10
+ --> $DIR/mutable_references.rs:8:26
|
-LL | *MEH.x.get() = 99;
- | ^^^^^
+LL | static FOO: &&mut u32 = &&mut 42;
+ | ^^^^^^^
warning: skipping const checks
- --> $DIR/mutable_references.rs:30:9
+ --> $DIR/mutable_references.rs:11:23
|
-LL | *MEH.x.get() = 99;
- | ^^^^^^^^^^^^^^^^^
+LL | static BAR: &mut () = &mut ();
+ | ^^^^^^^
warning: skipping const checks
- --> $DIR/mutable_references.rs:33:5
+ --> $DIR/mutable_references.rs:16:28
|
-LL | *OH_YES = 99;
- | ^^^^^^^^^^^^
+LL | static BOO: &mut Foo<()> = &mut Foo(());
+ | ^^^^^^^^^^^^
+
+warning: skipping const checks
+ --> $DIR/mutable_references.rs:26:8
+ |
+LL | x: &UnsafeCell::new(42),
+ | ^^^^^^^^^^^^^^^^^^^^
+
+warning: skipping const checks
+ --> $DIR/mutable_references.rs:30:27
+ |
+LL | static OH_YES: &mut i32 = &mut 42;
+ | ^^^^^^^
error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item
- --> $DIR/mutable_references.rs:33:5
+ --> $DIR/mutable_references.rs:37:5
|
LL | *OH_YES = 99;
| ^^^^^^^^^^^^ cannot assign