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