]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/two-phase-reservation-sharing-interference.nll_target.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / borrowck / two-phase-reservation-sharing-interference.nll_target.stderr
CommitLineData
b7449926 1error[E0502]: cannot borrow `vec` as mutable because it is also borrowed as immutable
cdc7bbd5 2 --> $DIR/two-phase-reservation-sharing-interference.rs:34:17
b7449926
XL
3 |
4LL | let shared = &vec;
5 | ---- immutable borrow occurs here
6...
7LL | delay = &mut vec;
8 | ^^^^^^^^ mutable borrow occurs here
9...
10LL | shared[0];
0bf4aa26 11 | ------ immutable borrow later used here
b7449926
XL
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0502`.