// edition: 2021 fn test<'s: 's>(s: &'s str) -> impl std::future::Future { async move { let _s = s; } //~^ ERROR hidden type for `impl Future` captures lifetime that does not appear in bounds } fn main() {}