1 error: method's name is the same as an existing method in a trait
2 --> $DIR/same_name_method.rs:21:13
7 note: existing `foo` defined here
8 --> $DIR/same_name_method.rs:25:13
12 = note: `-D clippy::same-name-method` implied by `-D warnings`
14 error: method's name is the same as an existing method in a trait
15 --> $DIR/same_name_method.rs:35:13
20 note: existing `clone` defined here
21 --> $DIR/same_name_method.rs:31:18
25 = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
27 error: method's name is the same as an existing method in a trait
28 --> $DIR/same_name_method.rs:45:13
33 note: existing `foo` defined here
34 --> $DIR/same_name_method.rs:49:13
39 error: method's name is the same as an existing method in a trait
40 --> $DIR/same_name_method.rs:59:13
45 note: existing `foo` defined here
46 --> $DIR/same_name_method.rs:62:9
51 error: method's name is the same as an existing method in a trait
52 --> $DIR/same_name_method.rs:71:13
57 note: existing `foo` defined here
58 --> $DIR/same_name_method.rs:74:9
63 error: aborting due to 5 previous errors