blob: 85b932a063c1463179d835bfa2d21fa22f68ab72 [file]
// Regression test for #68644
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 an `Fn()` closure, found `T`
}
fn main() {
<u8>::callme(0);
}