1 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
2 --> $DIR/two-phase-reservation-sharing-interference-2.rs:19:5
5 | -- immutable borrow occurs here
8 | ^ ------ immutable borrow later used here
10 | mutable borrow occurs here
12 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
13 --> $DIR/two-phase-reservation-sharing-interference-2.rs:29:5
18 | | | immutable borrow occurs here
19 | | immutable borrow later used by call
20 | mutable borrow occurs here
22 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
23 --> $DIR/two-phase-reservation-sharing-interference-2.rs:40:5
26 | -- immutable borrow occurs here
28 LL | v.push(shared.len());
29 | ^ ------ immutable borrow later used here
31 | mutable borrow occurs here
33 error: aborting due to 3 previous errors
35 For more information about this error, try `rustc --explain E0502`.