]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0499]: cannot borrow `x` as mutable more than once at a time |
48663c56 | 2 | --> $DIR/borrowck-mut-borrow-linear-errors.rs:10:30 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | 1 => { addr.push(&mut x); } |
dc9dc135 | 5 | | ^^^^^^ second mutable borrow occurs here |
48663c56 | 6 | LL | 2 => { addr.push(&mut x); } |
532ac7d7 | 7 | LL | _ => { addr.push(&mut x); } |
dc9dc135 XL |
8 | | ---- ------ first mutable borrow occurs here |
9 | | | | |
10 | | first borrow later used here | |
b7449926 XL |
11 | |
12 | error[E0499]: cannot borrow `x` as mutable more than once at a time | |
48663c56 | 13 | --> $DIR/borrowck-mut-borrow-linear-errors.rs:11:30 |
b7449926 | 14 | | |
532ac7d7 | 15 | LL | 2 => { addr.push(&mut x); } |
b7449926 | 16 | | ^^^^^^ second mutable borrow occurs here |
532ac7d7 | 17 | LL | _ => { addr.push(&mut x); } |
dc9dc135 XL |
18 | | ---- ------ first mutable borrow occurs here |
19 | | | | |
20 | | first borrow later used here | |
b7449926 XL |
21 | |
22 | error[E0499]: cannot borrow `x` as mutable more than once at a time | |
48663c56 | 23 | --> $DIR/borrowck-mut-borrow-linear-errors.rs:12:30 |
b7449926 | 24 | | |
532ac7d7 | 25 | LL | _ => { addr.push(&mut x); } |
b7449926 XL |
26 | | ^^^^^^ mutable borrow starts here in previous iteration of loop |
27 | ||
28 | error: aborting due to 3 previous errors | |
29 | ||
30 | For more information about this error, try `rustc --explain E0499`. |