2020-05-20 12:58:41 -05:00
|
|
|
error: lifetime may not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-escape-method.rs:15:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | s.f(|p| p)
|
2020-05-20 12:58:41 -05:00
|
|
|
| -- ^ returning this value requires that `'1` must outlive `'2`
|
|
|
|
| ||
|
|
|
|
| |return type of closure is &'2 i32
|
|
|
|
| has type `&'1 i32`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|