summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/impl-fn-hrtb-bounds-2.rs
blob: b0aeded0ef75a0855bfe9c2382c668caf00863e3 (plain)
1
2
3
4
5
6
7
8
#![feature(impl_trait_in_fn_trait_return)]
use std::fmt::Debug;

fn a() -> impl Fn(&u8) -> impl Debug {
    |x| x //~ ERROR hidden type for `impl Debug` captures lifetime that does not appear in bounds
}

fn main() {}