1 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
2 --> $DIR/borrowck-loan-vec-content.rs:28:9
6 | | - immutable borrow occurs here
7 LL | | || { //~ ERROR cannot borrow `v` as mutable
8 | | ^^ mutable borrow occurs here
10 | | - second borrow occurs due to use of `v` in closure
12 | |__________- borrow later used here
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0502`.