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