error[E0404]: expected trait, found struct `Foo` --> $DIR/E0404.rs:14:6 | LL | impl Foo for Bar {} //~ ERROR E0404 | ^^^ not a trait error[E0404]: expected trait, found struct `Foo` --> $DIR/E0404.rs:18:11 | LL | fn baz(_: T) {} //~ ERROR E0404 | ^^^ not a trait error: cannot continue compilation due to previous error