2018-08-08 07:28:26 -05:00
|
|
|
error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/regions-adjusted-lvalue-op.rs:14:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | v[0].oh_no(&v);
|
2019-04-22 02:40:08 -05:00
|
|
|
| - ----- ^^ immutable borrow occurs here
|
|
|
|
| | |
|
|
|
|
| | mutable borrow later used by call
|
2018-08-08 07:28:26 -05:00
|
|
|
| mutable borrow occurs here
|
|
|
|
|
|
|
|
error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
|
2019-04-22 02:40:08 -05:00
|
|
|
--> $DIR/regions-adjusted-lvalue-op.rs:15:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | (*v).oh_no(&v);
|
2019-04-22 02:40:08 -05:00
|
|
|
| - ----- ^^ immutable borrow occurs here
|
|
|
|
| | |
|
|
|
|
| | mutable borrow later used by call
|
2018-08-08 07:28:26 -05:00
|
|
|
| mutable borrow occurs here
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0502`.
|