]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-25579.ast.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-25579.ast.stderr
1 error[E0499]: cannot borrow `l.0` as mutable more than once at a time
2   --> $DIR/issue-25579.rs:24:32
3    |
4 LL |         &mut Sexpression::Cons(ref mut expr) => { //[ast]~ ERROR [E0499]
5    |                                ^^^^^^^^^^^^ mutable borrow starts here in previous iteration of loop
6 ...
7 LL | }
8    | - mutable borrow ends here
9
10 error[E0506]: cannot assign to `l` because it is borrowed
11   --> $DIR/issue-25579.rs:25:13
12    |
13 LL |         &mut Sexpression::Cons(ref mut expr) => { //[ast]~ ERROR [E0499]
14    |                                ------------ borrow of `l` occurs here
15 LL |             l = &mut **expr; //[ast]~ ERROR [E0506]
16    |             ^^^^^^^^^^^^^^^ assignment to borrowed `l` occurs here
17
18 error: aborting due to 2 previous errors
19
20 Some errors occurred: E0499, E0506.
21 For more information about an error, try `rustc --explain E0499`.