]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/two-phase-reservation-sharing-interference-2.nll2018.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / borrowck / two-phase-reservation-sharing-interference-2.nll2018.stderr
CommitLineData
532ac7d7 1error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
416331ca 2 --> $DIR/two-phase-reservation-sharing-interference-2.rs:19:5
532ac7d7
XL
3 |
4LL | let shared = &v;
5 | -- immutable borrow occurs here
6LL |
7LL | v.extend(shared);
04454e1e
FG
8 | ^^------^^^^^^^^
9 | | |
10 | | immutable borrow later used by call
532ac7d7
XL
11 | mutable borrow occurs here
12
13error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
416331ca 14 --> $DIR/two-phase-reservation-sharing-interference-2.rs:29:5
532ac7d7
XL
15 |
16LL | v.extend(&v);
17 | ^^------^--^
18 | | | |
19 | | | immutable borrow occurs here
20 | | immutable borrow later used by call
21 | mutable borrow occurs here
22
04454e1e 23error: aborting due to 2 previous errors
532ac7d7
XL
24
25For more information about this error, try `rustc --explain E0502`.