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
463 B
Plaintext
Raw Normal View History

2018-12-11 21:49:40 +00:00
error: lifetime may not live long enough
2019-09-06 14:23:00 +00:00
--> $DIR/issue-48238.rs:9:13
2018-03-23 06:40:56 +00:00
|
2019-03-09 12:03:44 +00:00
LL | move || use_val(&orig);
2018-08-07 20:48:50 +00: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 06:40:56 +00:00
error: aborting due to 1 previous error
2018-03-23 06:40:56 +00:00