fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
494 B16 linesraw
1error[E0505]: cannot move out of `v` because it is borrowed
2  --> $DIR/issue-11873.rs:4:14
3   |
4LL |     let mut f = || v.push(2);
5   |                 -- - borrow occurs due to use in closure
6   |                 |
7   |                 borrow of `v` occurs here
8LL |     let _w = v;
9   |              ^ move out of `v` occurs here
10LL | 
11LL |     f();
12   |     - borrow later used here
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0505`.