]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-adjusted-lvalue-op.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / regions / regions-adjusted-lvalue-op.stderr
CommitLineData
b7449926 1error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
48663c56 2 --> $DIR/regions-adjusted-lvalue-op.rs:14:16
b7449926 3 |
532ac7d7 4LL | v[0].oh_no(&v);
48663c56
XL
5 | - ----- ^^ immutable borrow occurs here
6 | | |
7 | | mutable borrow later used by call
b7449926
XL
8 | mutable borrow occurs here
9
10error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
48663c56 11 --> $DIR/regions-adjusted-lvalue-op.rs:15:16
b7449926 12 |
532ac7d7 13LL | (*v).oh_no(&v);
48663c56
XL
14 | - ----- ^^ immutable borrow occurs here
15 | | |
16 | | mutable borrow later used by call
b7449926
XL
17 | mutable borrow occurs here
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0502`.