1 error: unsatisfied lifetime constraints
2 --> $DIR/regions-escape-method.rs:25:13
4 LL | s.f(|p| p) //~ ERROR cannot infer
5 | -- ^ returning this value requires that `'1` must outlive `'2`
7 | |return type of closure is &'2 i32
10 error: aborting due to previous error