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