blob: cee61db38f306a7398b647487a2699ebb1c521b5 [file] [log] [blame]
error[E0499]: cannot borrow `x` as mutable more than once at a time
--> $DIR/borrowck-mut-borrow-linear-errors.rs:13:35
|
LL | 1 => { addr.push(&mut x); }
| ^ mutable borrow starts here in previous iteration of loop
...
LL | }
| - mutable borrow ends here
error[E0499]: cannot borrow `x` as mutable more than once at a time
--> $DIR/borrowck-mut-borrow-linear-errors.rs:15:35
|
LL | 1 => { addr.push(&mut x); }
| - first mutable borrow occurs here
LL |
LL | 2 => { addr.push(&mut x); }
| ^ second mutable borrow occurs here
...
LL | }
| - first borrow ends here
error[E0499]: cannot borrow `x` as mutable more than once at a time
--> $DIR/borrowck-mut-borrow-linear-errors.rs:17:35
|
LL | 1 => { addr.push(&mut x); }
| - first mutable borrow occurs here
...
LL | _ => { addr.push(&mut x); }
| ^ second mutable borrow occurs here
...
LL | }
| - first borrow ends here
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0499`.