1 // Regression test for #68645
3 #![feature(generic_associated_types)]
6 type F<'a>: Fn() -> u32;
8 fn callme<'a>(f: Self::F<'a>) -> u32 {
15 //~^ ERROR expected a `Fn<()>` closure, found `T`
19 <&dyn Iterator<Item = u8>>::callme(&std::iter::once(1));