2019-01-27 05:03:21 -06:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 12:13:25 -05:00
|
|
|
--> $DIR/regions-ret-borrowed-1.rs:10:14
|
2019-01-27 05:03:21 -06:00
|
|
|
|
|
|
|
|
LL | with(|o| o)
|
|
|
|
| -- ^ returning this value requires that `'1` must outlive `'2`
|
|
|
|
| ||
|
|
|
|
| |return type of closure is &'2 isize
|
|
|
|
| has type `&'1 isize`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|