1 2 3 4 5 6 7 8
struct Foo; struct Bar; impl Foo for Bar {} //~ ERROR E0404 fn main() {} fn baz<T: Foo>(_: T) {} //~ ERROR E0404