trait Foo { const ASSOC: bool = true; } impl Foo for fn(T) {} fn foo(_x: i32) {} fn impls_foo(_x: T) {} fn main() { impls_foo(foo as fn(i32)); ::ASSOC; //~^ ERROR implementation of `Foo` is not general enough //~| ERROR implementation of `Foo` is not general enough }