rust/tests/ui/nll/issue-48238.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
461 B
Plaintext
Raw Normal View History

2018-12-11 15:49:40 -06:00
error: lifetime may not live long enough
2019-09-06 09:23:00 -05:00
--> $DIR/issue-48238.rs:9:13
2018-03-23 01:40:56 -05:00
|
2019-03-09 06:03:44 -06:00
LL | move || use_val(&orig);
2018-08-07 15:48:50 -05:00
| ------- ^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
| | |
| | return type of closure is &'2 u8
| lifetime `'1` represents this closure's body
|
= note: closure implements `Fn`, so references to captured variables can't escape the closure
2018-03-23 01:40:56 -05:00
error: aborting due to previous error