]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reassign-ref-mut.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / reassign-ref-mut.stderr
1 error[E0384]: cannot assign twice to immutable variable `a`
2   --> $DIR/reassign-ref-mut.rs:22:5
3    |
4 LL |     let &mut (ref a, ref mut b) = &mut one_two;
5    |               ----- first assignment to `a`
6 LL |     a = &three_four.0;
7    |     ^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable
8
9 error[E0384]: cannot assign twice to immutable variable `b`
10   --> $DIR/reassign-ref-mut.rs:24:5
11    |
12 LL |     let &mut (ref a, ref mut b) = &mut one_two;
13    |                      --------- first assignment to `b`
14 ...
15 LL |     b = &mut three_four.1;
16    |     ^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0384`.