rust/src/test/ui/nll/issue-48238.stderr

14 lines
471 B
Plaintext
Raw Normal View History

error: unsatisfied lifetime constraints
2018-12-25 09:56:47 -06:00
--> $DIR/issue-48238.rs:11:13
2018-03-23 01:40:56 -05:00
|
LL | move || use_val(&orig); //~ ERROR
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