]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/lint-no-err.stderr
Auto merge of #94515 - estebank:tweak-move-error, r=davidtwco
[rust.git] / src / test / ui / nll / lint-no-err.stderr
1 warning: cannot borrow `conflict` as mutable because it is also borrowed as immutable
2   --> $DIR/lint-no-err.rs:25:5
3    |
4 LL |     let prev = conflict.get();
5    |                -------------- immutable borrow occurs here
6 LL |     conflict.insert(*prev + *x);
7    |     ^^^^^^^^^^^^^^^^-----^^^^^^
8    |     |               |
9    |     |               immutable borrow later used here
10    |     mutable borrow occurs here
11    |
12    = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
13    = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
14    = note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
15
16 warning: 1 warning emitted
17