blob: e69a08b0a39911e6a0b9b4141ff9c3d4c3f8f1a1 [file] [log] [blame]
// Regression test for #68645
trait Fun {
type F<'a>: Fn() -> u32;
fn callme<'a>(f: Self::F<'a>) -> u32 {
f()
}
}
impl<T> Fun for T {
type F<'a> = Self;
//~^ ERROR expected a `Fn()` closure, found `T`
}
fn main() {
<&dyn Iterator<Item = u8>>::callme(&std::iter::once(1));
}