1 error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
2 --> $DIR/borrowck-uniq-via-lend.rs:46:12
5 | ------ mutable borrow occurs here
6 LL | borrow(&*v); //~ ERROR cannot borrow `*v`
7 | ^^^ immutable borrow occurs here
9 | - borrow later used here
11 error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
12 --> $DIR/borrowck-uniq-via-lend.rs:63:12
15 | ------ mutable borrow occurs here
16 LL | borrow(&*v); //~ ERROR cannot borrow `*v`
17 | ^^^ immutable borrow occurs here
19 | - borrow later used here
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0502`.