]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type4.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[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() {}