blob: 39db51c0e2a212821c8dc5425bc15ae749a07c6c [file] [log] [blame]
// Regression test for #68643
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`
}
pub fn main() {
<fn()>::callme(|| {});
}