fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
539 B15 linesraw
1error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immutable
2  --> $DIR/borrowck-loan-blocks-mut-uniq.rs:10:12
3   |
4LL |     borrow(&*v,
5   |     ------ --- immutable borrow occurs here
6   |     |
7   |     immutable borrow later used by call
8LL |            |w| {
9   |            ^^^ mutable borrow occurs here
10LL |             v = box 4;
11   |             - second borrow occurs due to use of `v` in closure
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0502`.