2021-12-06 11:33:31 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:20:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:25:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::same-name-method` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::same_name_method)]`
|
2021-09-28 17:03:12 +00:00
|
|
|
|
2022-04-03 19:50:33 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:35:13
|
2022-04-03 19:50:33 +00:00
|
|
|
|
|
|
|
|
LL | fn clone() {}
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `clone` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:31:18
|
2022-04-03 19:50:33 +00: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 11:33:31 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:46:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:51:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2021-12-06 11:33:31 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:61:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:65:9
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | impl T1 for S {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-12-06 11:33:31 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:74:13
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:79:9
|
2021-09-28 17:03:12 +00:00
|
|
|
|
|
|
|
|
LL | impl T1 for S {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-01-30 05:57:29 +00:00
|
|
|
error: method's name is the same as an existing method in a trait
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:74:13
|
2024-01-30 05:57:29 +00:00
|
|
|
|
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: existing `foo` defined here
|
2024-02-10 22:31:36 +00:00
|
|
|
--> tests/ui/same_name_method.rs:81:9
|
2024-01-30 05:57:29 +00:00
|
|
|
|
|
|
|
|
LL | impl T2 for S {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2021-09-28 17:03:12 +00:00
|
|
|
|