| ^^^^^^ second mutable borrow occurs here
LL | 2 => { addr.push(&mut x); }
LL | _ => { addr.push(&mut x); }
- | ---- ------ first mutable borrow occurs here
- | |
+ | -----------------
+ | | |
+ | | first mutable borrow occurs here
| first borrow later used here
error[E0499]: cannot borrow `x` as mutable more than once at a time
LL | 2 => { addr.push(&mut x); }
| ^^^^^^ second mutable borrow occurs here
LL | _ => { addr.push(&mut x); }
- | ---- ------ first mutable borrow occurs here
- | |
+ | -----------------
+ | | |
+ | | first mutable borrow occurs here
| first borrow later used here
error[E0499]: cannot borrow `x` as mutable more than once at a time