2018-07-15 16:11:54 -05:00
|
|
|
error: unsatisfied lifetime constraints
|
|
|
|
--> $DIR/issue-40510-3.rs:18:9
|
|
|
|
|
|
|
|
|
LL | || {
|
|
|
|
| _____-
|
|
|
|
| |_____|
|
|
|
|
| ||
|
|
|
|
LL | || || {
|
|
|
|
| ||_________^
|
|
|
|
LL | ||| x.push(())
|
|
|
|
LL | ||| }
|
2018-07-26 08:36:41 -05:00
|
|
|
| |||_________^ requires that `'1` must outlive `'2`
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | || };
|
|
|
|
| || -
|
|
|
|
| ||_____|
|
|
|
|
| |______lifetime `'1` represents the closure body
|
|
|
|
| lifetime `'2` appears in return type
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|