]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type4.rs
Auto merge of #105365 - matthiaskrgr:rollup-g0mrrt7, r=matthiaskrgr
[rust.git] / src / test / ui / impl-trait / nested-return-type4.rs
1 // edition: 2021
2
3 fn test<'s: 's>(s: &'s str) -> impl std::future::Future<Output = impl Sized> {
4     async move { let _s = s; }
5     //~^ ERROR hidden type for `impl Future<Output = impl Sized>` captures lifetime that does not appear in bounds
6 }
7
8 fn main() {}