blob: 49b483d750314c233de4380997f8782a3e814c56 [file] [log] [blame]
error[E0499]: cannot borrow `l.0` as mutable more than once at a time
--> $DIR/issue-25579.rs:24:32
|
LL | &mut Sexpression::Cons(ref mut expr) => { //[ast]~ ERROR [E0499]
| ^^^^^^^^^^^^ mutable borrow starts here in previous iteration of loop
...
LL | }
| - mutable borrow ends here
error[E0506]: cannot assign to `l` because it is borrowed
--> $DIR/issue-25579.rs:25:13
|
LL | &mut Sexpression::Cons(ref mut expr) => { //[ast]~ ERROR [E0499]
| ------------ borrow of `l` occurs here
LL | l = &mut **expr; //[ast]~ ERROR [E0506]
| ^^^^^^^^^^^^^^^ assignment to borrowed `l` occurs here
error: aborting due to 2 previous errors
Some errors occurred: E0499, E0506.
For more information about an error, try `rustc --explain E0499`.