fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: borrowed data cannot be stored outside of its closure 2 --> $DIR/issue-7573.rs:21:27 3 | 4LL | let mut lines_to_use: Vec<&CrateId> = Vec::new(); 5 | - cannot infer an appropriate lifetime... 6LL | 7LL | let push_id = |installed_id: &CrateId| { 8 | ------- ------------------------ borrowed data cannot outlive this closure 9 | | 10 | ...so that variable is valid at time of its declaration 11... 12LL | lines_to_use.push(installed_id); 13 | ^^^^^^^^^^^^ cannot be stored outside of its closure 14 15error: aborting due to previous error 16