rust-clippy/tests/ui/same_name_method.stderr

78 lines
2.2 KiB
Text
Raw Normal View History

error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:21:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
|
note: existing `foo` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:26:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
2022-09-22 16:04:22 +00:00
= note: `-D clippy::same-name-method` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::same_name_method)]`
error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:36:13
|
LL | fn clone() {}
| ^^^^^^^^^^^^^
|
note: existing `clone` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:32:18
|
LL | #[derive(Clone)]
| ^^^^^
= note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:47:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
|
note: existing `foo` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:52:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:62:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
|
note: existing `foo` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:66:9
|
LL | impl T1 for S {}
| ^^^^^^^^^^^^^^^^
error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:75:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
|
note: existing `foo` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:80:9
|
LL | impl T1 for S {}
| ^^^^^^^^^^^^^^^^
error: method's name is the same as an existing method in a trait
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:75:13
|
LL | fn foo() {}
| ^^^^^^^^^^^
|
note: existing `foo` defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/same_name_method.rs:82:9
|
LL | impl T2 for S {}
| ^^^^^^^^^^^^^^^^
error: aborting due to 6 previous errors