1 error: unsatisfied lifetime constraints
2 --> $DIR/regions-escape-via-trait-or-not.rs:28:14
4 LL | with(|o| o) //~ ERROR cannot infer
5 | -- ^ returning this value requires that `'1` must outlive `'2`
7 | |return type of closure is &'2 isize
10 error: aborting due to previous error