2018-07-03 10:38:09 -05:00
|
|
|
error: unsatisfied lifetime constraints
|
|
|
|
--> $DIR/issue-48238.rs:21:13
|
2018-03-23 01:40:56 -05:00
|
|
|
|
|
2018-07-03 10:38:09 -05:00
|
|
|
LL | move || use_val(&orig); //~ ERROR
|
2018-08-05 08:33:38 -05:00
|
|
|
| ------- ^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
|
2018-08-06 15:42:26 -05:00
|
|
|
| | |
|
|
|
|
| | return type of closure is &'2 u8
|
2018-08-05 08:33:38 -05: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 01:40:56 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|