]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/unboxed-closure-region.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / unboxed-closures / unboxed-closure-region.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/unboxed-closure-region.rs:18:12
3    |
4 LL |         || x //~ ERROR `x` does not live long enough
5    |         -- ^ borrowed value does not live long enough
6    |         |
7    |         capture occurs here
8 LL |     };
9    |     - borrowed value only lives until here
10 LL |     _f;
11 LL | }
12    | - borrowed value needs to live until here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.