1 fn f() -> impl Fn() -> impl Sized { || () }
2 //~^ ERROR `impl Trait` only allowed in function and inherent method return types, not in `Fn` trait return
3 fn g() -> &'static dyn Fn() -> impl Sized { &|| () }
4 //~^ ERROR `impl Trait` only allowed in function and inherent method return types, not in `Fn` trait return