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