1 error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
2 --> $DIR/borrowck-lend-flow-loop.rs:45:16
4 LL | let mut x = &mut v;
5 | ------ mutable borrow occurs here
7 LL | borrow(&*v); //~ ERROR cannot borrow
8 | ^^^ immutable borrow occurs here
11 | -- borrow used here, in later iteration of loop
13 error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
14 --> $DIR/borrowck-lend-flow-loop.rs:109:16
17 | -------- borrow used here, in later iteration of loop
18 LL | borrow(&*v); //~ ERROR cannot borrow
19 | ^^^ immutable borrow occurs here
21 LL | x = &mut v; //~ ERROR cannot borrow
22 | ------ mutable borrow occurs here
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0502`.