blob: 913effa1c93c059a0b980b76b0c8558cefd183fc [file] [log] [blame]
error: unsatisfied lifetime constraints
--> $DIR/issue-48238.rs:11:13
|
LL | move || use_val(&orig); //~ ERROR
| ------- ^^^^^^^^^^^^^^ 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
error: aborting due to previous error