3 // test that names give to anonymous lifetimes in opaque types like `impl Future` are correctly
4 // introduced in error messages
6 use std::future::Future;
8 pub async fn foo<F, T>(_: F)
11 T: Future<Output = ()>,
15 pub async fn bar(_: &u8) {}
18 let _ = foo(|x| bar(x)); //~ ERROR lifetime may not live long enough