1 #![feature(impl_trait_in_fn_trait_return)]
4 fn a() -> impl Fn(&u8) -> (impl Debug + '_) {
5 //~^ ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
9 fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) {
10 //~^ ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
14 fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) {
15 //~^ ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
19 fn d() -> impl Fn() -> (impl Debug + '_) {
20 //~^ ERROR missing lifetime specifier