mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
35 lines
694 B
Text
35 lines
694 B
Text
error: Multiple implementations of this structure
|
|
--> $DIR/impl.rs:22:1
|
|
|
|
|
22 | / impl MyStruct {
|
|
23 | | fn second() {}
|
|
24 | | }
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::multiple-inherent-impl` implied by `-D warnings`
|
|
note: First implementation here
|
|
--> $DIR/impl.rs:18:1
|
|
|
|
|
18 | / impl MyStruct {
|
|
19 | | fn first() {}
|
|
20 | | }
|
|
| |_^
|
|
|
|
error: Multiple implementations of this structure
|
|
--> $DIR/impl.rs:36:5
|
|
|
|
|
36 | / impl super::MyStruct {
|
|
37 | | fn third() {}
|
|
38 | | }
|
|
| |_____^
|
|
|
|
|
note: First implementation here
|
|
--> $DIR/impl.rs:18:1
|
|
|
|
|
18 | / impl MyStruct {
|
|
19 | | fn first() {}
|
|
20 | | }
|
|
| |_^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|