// Regression test for #68644 trait Fun { type F<'a>: Fn() -> u32; fn callme<'a>(f: Self::F<'a>) -> u32 { f() } } impl Fun for T { type F<'a> = Self; //~^ ERROR expected a `Fn<()>` closure, found `T` } fn main() { ::callme(0); }