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