2020-08-28 14:10:16 +00:00
|
|
|
error: multiple implementations of this structure
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:10:1
|
2018-05-29 00:17:55 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / impl MyStruct {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | fn second() {}
|
|
|
|
LL | | }
|
2018-05-29 00:17:55 +00:00
|
|
|
| |_^
|
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
note: first implementation here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:6:1
|
2018-05-29 00:17:55 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / impl MyStruct {
|
|
|
|
LL | | fn first() {}
|
|
|
|
LL | | }
|
2018-05-29 00:17:55 +00:00
|
|
|
| |_^
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::multiple-inherent-impl` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::multiple_inherent_impl)]`
|
2018-05-29 00:17:55 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: multiple implementations of this structure
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:25:5
|
2018-05-29 00:17:55 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / impl super::MyStruct {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | | fn third() {}
|
|
|
|
LL | | }
|
2018-05-29 00:17:55 +00:00
|
|
|
| |_____^
|
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
note: first implementation here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:6:1
|
2018-05-29 00:17:55 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / impl MyStruct {
|
|
|
|
LL | | fn first() {}
|
|
|
|
LL | | }
|
2018-05-29 00:17:55 +00:00
|
|
|
| |_^
|
|
|
|
|
2021-05-20 10:30:31 +00:00
|
|
|
error: multiple implementations of this structure
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:46:1
|
2021-05-20 10:30:31 +00:00
|
|
|
|
|
|
|
|
LL | / impl WithArgs<u64> {
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2021-05-20 10:30:31 +00:00
|
|
|
LL | | fn f3() {}
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
note: first implementation here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:43:1
|
2021-05-20 10:30:31 +00:00
|
|
|
|
|
|
|
|
LL | / impl WithArgs<u64> {
|
|
|
|
LL | | fn f2() {}
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: multiple implementations of this structure
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:68:1
|
2021-05-20 10:30:31 +00:00
|
|
|
|
|
|
|
|
LL | impl OneAllowedImpl {} // Lint, only one of the three blocks is allowed.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: first implementation here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/impl.rs:65:1
|
2021-05-20 10:30:31 +00:00
|
|
|
|
|
|
|
|
LL | impl OneAllowedImpl {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-05-29 00:17:55 +00:00
|
|
|
|