fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1warning: skipping const checks 2 --> $DIR/mutable_references.rs:8:26 3 | 4LL | static FOO: &&mut u32 = &&mut 42; 5 | ^^^^^^^ 6 7warning: skipping const checks 8 --> $DIR/mutable_references.rs:11:23 9 | 10LL | static BAR: &mut () = &mut (); 11 | ^^^^^^^ 12 13warning: skipping const checks 14 --> $DIR/mutable_references.rs:16:28 15 | 16LL | static BOO: &mut Foo<()> = &mut Foo(()); 17 | ^^^^^^^^^^^^ 18 19warning: skipping const checks 20 --> $DIR/mutable_references.rs:26:8 21 | 22LL | x: &UnsafeCell::new(42), 23 | ^^^^^^^^^^^^^^^^^^^^ 24 25warning: skipping const checks 26 --> $DIR/mutable_references.rs:30:27 27 | 28LL | static OH_YES: &mut i32 = &mut 42; 29 | ^^^^^^^ 30 31error[E0594]: cannot assign to `*OH_YES`, as `OH_YES` is an immutable static item 32 --> $DIR/mutable_references.rs:37:5 33 | 34LL | *OH_YES = 99; 35 | ^^^^^^^^^^^^ cannot assign 36 37error: aborting due to previous error 38