1 error[E0502]: cannot borrow `*v` as immutable because `v` is also borrowed as mutable
2 --> $DIR/borrowck-uniq-via-lend.rs:36:13
5 | - mutable borrow occurs here
6 LL | borrow(&*v); //~ ERROR cannot borrow `*v`
7 | ^^ immutable borrow occurs here
10 | - mutable borrow ends here
12 error[E0502]: cannot borrow `*v` as immutable because `v` is also borrowed as mutable
13 --> $DIR/borrowck-uniq-via-lend.rs:53:13
16 | - mutable borrow occurs here
17 LL | borrow(&*v); //~ ERROR cannot borrow `*v`
18 | ^^ immutable borrow occurs here
21 | - mutable borrow ends here
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0502`.