2021-12-06 05:33:31 -06:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:21:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:25:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::same-name-method` implied by `-D warnings`
|
2021-09-28 12:03:12 -05:00
|
|
|
|
2022-04-03 14:50:33 -05:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:35:13
|
2022-04-03 14:50:33 -05:00
|
|
|
|
|
|
|
|
LL | fn clone() {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `clone` defined here
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:31:18
|
2022-04-03 14:50:33 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Clone)]
|
|
|
|
| ^^^^^
|
|
|
|
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:45:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:49:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:59:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:62:9
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | impl T1 for S {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:71:13
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2022-06-16 10:39:06 -05:00
|
|
|
--> $DIR/same_name_method.rs:74:9
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | impl T1 for S {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|