1 error: lifetime may not live long enough
2 --> $DIR/regions-infer-call-3.rs:8:24
4 LL | let z = with(|y| { select(x, y) });
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