fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0384]: cannot assign twice to immutable variable `a` 2 --> $DIR/reassign-ref-mut.rs:12:5 3 | 4LL | let &mut (ref a, ref mut b) = &mut one_two; 5 | ----- first assignment to `a` 6LL | a = &three_four.0; 7 | ^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable 8 9error[E0384]: cannot assign twice to immutable variable `b` 10 --> $DIR/reassign-ref-mut.rs:14:5 11 | 12LL | let &mut (ref a, ref mut b) = &mut one_two; 13 | --------- first assignment to `b` 14... 15LL | b = &mut three_four.1; 16 | ^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable 17 18error: aborting due to 2 previous errors 19 20For more information about this error, try `rustc --explain E0384`.