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