blob: 1d1522a15b1ed0ae19464da611137f6a3741e918 [file] [log] [blame]
error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
--> $DIR/borrowck-loan-blocks-mut-uniq.rs:10:12
|
LL | borrow(&*v,
| ------ --- immutable borrow occurs here
| |
| immutable borrow later used by call
LL | |w| {
| ^^^ mutable borrow occurs here
LL | v = box 4;
| - second borrow occurs due to use of `v` in closure
error: aborting due to previous error
For more information about this error, try `rustc --explain E0502`.