trait Trait { fn foo(); } fn main() { <::foobar as Trait>::foo(); //~^ ERROR cannot find associated type `foobar` in trait `Copy` }