1 error: lifetime may not live long enough
2 --> $DIR/issue-42574-diagnostic-in-nested-closure.rs:6:8
5 | -- ^^^^^^^^^^ argument requires that `'1` must outlive `'static`
7 | lifetime `'1` represents this closure's body
9 = note: closure implements `FnMut`, so references to captured variables can't escape the closure
11 error[E0597]: `data` does not live long enough
12 --> $DIR/issue-42574-diagnostic-in-nested-closure.rs:6:13
17 | | | borrowed value does not live long enough
18 | | argument requires that `data` is borrowed for `'static`
22 | - `data` dropped here while still borrowed
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0597`.