summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/nested-return-type4.rs
blob: cec70bb1a0d9e5e9530820b574947071ebba9d67 (plain)
1
2
3
4
5
6
7
8
// edition: 2021

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

fn main() {}