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