1 error[E0499]: cannot borrow `x` as mutable more than once at a time
2 --> $DIR/borrowck-mut-borrow-linear-errors.rs:13:30
4 LL | 1 => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
5 | ---- ^^^^^^ second mutable borrow occurs here
7 | first borrow used here, in later iteration of loop
9 LL | _ => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
10 | ------ first mutable borrow occurs here
12 error[E0499]: cannot borrow `x` as mutable more than once at a time
13 --> $DIR/borrowck-mut-borrow-linear-errors.rs:15:30
15 LL | 1 => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
16 | ---- first borrow used here, in later iteration of loop
17 LL | //[mir]~^ ERROR [E0499]
18 LL | 2 => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
19 | ^^^^^^ second mutable borrow occurs here
20 LL | //[mir]~^ ERROR [E0499]
21 LL | _ => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
22 | ------ first mutable borrow occurs here
24 error[E0499]: cannot borrow `x` as mutable more than once at a time
25 --> $DIR/borrowck-mut-borrow-linear-errors.rs:17:30
27 LL | _ => { addr.push(&mut x); } //[ast]~ ERROR [E0499]
28 | ^^^^^^ mutable borrow starts here in previous iteration of loop
30 error: aborting due to 3 previous errors
32 For more information about this error, try `rustc --explain E0499`.