fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
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`.