6 impl std::fmt::Display for MyType {
7 fn fmt(&self, x: &str) -> () { }
8 //~^ ERROR method `fmt` has an incompatible type
11 impl std::fmt::Display for MyType2 {
12 fn fmt(&self) -> () { }
13 //~^ ERROR method `fmt` has 1 parameter
16 impl std::fmt::Display for MyType3 {
18 //~^ ERROR method `fmt` has a `&self` declaration in the trait
21 impl std::fmt::Display for MyType4 {}
22 //~^ ERROR not all trait items