]> git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/borrowck-loan-blocks-mut-uniq.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / borrowck / borrowck-loan-blocks-mut-uniq.stderr
1 error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
2 --> $DIR/borrowck-loan-blocks-mut-uniq.rs:10:12
3 |
4 LL | borrow(&*v,
5 | ------ --- immutable borrow occurs here
6 | |
7 | immutable borrow later used by call
8 LL | |w| {
9 | ^^^ mutable borrow occurs here
10 LL | v = Box::new(4);
11 | - second borrow occurs due to use of `v` in closure
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0502`.