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
10 | | immutable borrow later used by call
11 | mutable borrow occurs here
13 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
14 --> $DIR/two-phase-reservation-sharing-interference-2.rs:29:5
19 | | | immutable borrow occurs here
20 | | immutable borrow later used by call
21 | mutable borrow occurs here
23 warning: cannot borrow `v` as mutable because it is also borrowed as immutable
24 --> $DIR/two-phase-reservation-sharing-interference-2.rs:40:5
27 | -- immutable borrow occurs here
29 LL | v.push(shared.len());
30 | ^^^^^^^------------^
32 | | immutable borrow later used here
33 | mutable borrow occurs here
35 = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
36 = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
37 = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
39 error: aborting due to 2 previous errors; 1 warning emitted
41 For more information about this error, try `rustc --explain E0502`.