1 error: lifetime may not live long enough
2 --> $DIR/issue-74497-lifetime-in-opaque.rs:18:21
4 LL | let _ = foo(|x| bar(x));
5 | -- ^^^^^^ returning this value requires that `'1` must outlive `'2`
7 | |return type of closure `impl Future<Output = ()>` contains a lifetime `'2`
10 error: aborting due to previous error