warning: cannot borrow `v` as mutable because it is also borrowed as immutable --> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:24:9 | LL | let shared = &v; | -- immutable borrow occurs here LL | LL | v.push(shared.len()); | ^ ------ immutable borrow later used here | | | mutable borrow occurs here | note: lint level defined here --> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:18:13 | LL | #![warn(mutable_borrow_reservation_conflict)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future = note: for more information, see issue #59159 error: cannot borrow `v` as mutable because it is also borrowed as immutable --> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:37:9 | LL | let shared = &v; | -- immutable borrow occurs here LL | LL | v.push(shared.len()); | ^ ------ immutable borrow later used here | | | mutable borrow occurs here | note: lint level defined here --> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:31:13 | LL | #![deny(mutable_borrow_reservation_conflict)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future = note: for more information, see issue #59159 error: aborting due to previous error