blob: 2c55634445d810b8f2b7957741fcd745ffbcf266 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
--> $DIR/regions-adjusted-lvalue-op.rs:14:16
|
LL | v[0].oh_no(&v);
| - ----- ^^ immutable borrow occurs here
| | |
| | mutable borrow later used by call
| mutable borrow occurs here
error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
--> $DIR/regions-adjusted-lvalue-op.rs:15:16
|
LL | (*v).oh_no(&v);
| - ----- ^^ immutable borrow occurs here
| | |
| | mutable borrow later used by call
| mutable borrow occurs here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0502`.
|