1 error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
2 --> $DIR/regions-adjusted-lvalue-op.rs:24:17
4 LL | v[0].oh_no(&v); //~ ERROR cannot borrow `v` as immutable because
5 | - ^- mutable borrow ends here
7 | | immutable borrow occurs here
8 | mutable borrow occurs here
10 error[E0502]: cannot borrow `v` as immutable because it is also borrowed as mutable
11 --> $DIR/regions-adjusted-lvalue-op.rs:25:17
13 LL | (*v).oh_no(&v); //~ ERROR cannot borrow `v` as immutable because
14 | - ^- mutable borrow ends here
16 | | immutable borrow occurs here
17 | mutable borrow occurs here
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0502`.