1 2 3 4 5 6 7 8 9 10 11
trait Foo { fn foo(); } struct Bar; impl Foo for Bar {} //~^ ERROR E0046 fn main() { }