1 error[E0499]: cannot borrow `l.0` as mutable more than once at a time
2 --> $DIR/issue-25579.rs:24:32
4 LL | &mut Sexpression::Cons(ref mut expr) => { //[ast]~ ERROR [E0499]
5 | ^^^^^^^^^^^^ mutable borrow starts here in previous iteration of loop
8 | - mutable borrow ends here
10 error[E0506]: cannot assign to `l` because it is borrowed
11 --> $DIR/issue-25579.rs:25:13
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
18 error: aborting due to 2 previous errors
20 Some errors occurred: E0499, E0506.
21 For more information about an error, try `rustc --explain E0499`.