]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-40510-3.nll.stderr
Rollup merge of #53110 - Xanewok:save-analysis-remap-path, r=nrc
[rust.git] / src / test / ui / issue-40510-3.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/issue-40510-3.rs:18:9
3    |
4 LL |       || {
5    |       --
6    |       ||
7    |       |return type of closure is [closure@$DIR/issue-40510-3.rs:18:9: 20:10 x:&'2 mut std::vec::Vec<()>]
8    |       lifetime `'1` represents this closure's body
9 LL | /         || {
10 LL | |             x.push(())
11 LL | |         }
12    | |_________^ requires that `'1` must outlive `'2`
13    |
14    = note: closure implements `FnMut`, so references to captured variables can't escape the closure
15
16 error: aborting due to previous error
17