]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/impl.stderr
Rollup merge of #98111 - eggyal:issue-97982, r=GuillaumeGomez
[rust.git] / src / tools / clippy / tests / ui / impl.stderr
1 error: multiple implementations of this structure
2   --> $DIR/impl.rs:10:1
3    |
4 LL | / impl MyStruct {
5 LL | |     fn second() {}
6 LL | | }
7    | |_^
8    |
9    = note: `-D clippy::multiple-inherent-impl` implied by `-D warnings`
10 note: first implementation here
11   --> $DIR/impl.rs:6:1
12    |
13 LL | / impl MyStruct {
14 LL | |     fn first() {}
15 LL | | }
16    | |_^
17
18 error: multiple implementations of this structure
19   --> $DIR/impl.rs:24:5
20    |
21 LL | /     impl super::MyStruct {
22 LL | |         fn third() {}
23 LL | |     }
24    | |_____^
25    |
26 note: first implementation here
27   --> $DIR/impl.rs:6:1
28    |
29 LL | / impl MyStruct {
30 LL | |     fn first() {}
31 LL | | }
32    | |_^
33
34 error: multiple implementations of this structure
35   --> $DIR/impl.rs:44:1
36    |
37 LL | / impl WithArgs<u64> {
38 LL | |     fn f3() {}
39 LL | | }
40    | |_^
41    |
42 note: first implementation here
43   --> $DIR/impl.rs:41:1
44    |
45 LL | / impl WithArgs<u64> {
46 LL | |     fn f2() {}
47 LL | | }
48    | |_^
49
50 error: multiple implementations of this structure
51   --> $DIR/impl.rs:65:1
52    |
53 LL | impl OneAllowedImpl {} // Lint, only one of the three blocks is allowed.
54    | ^^^^^^^^^^^^^^^^^^^^^^
55    |
56 note: first implementation here
57   --> $DIR/impl.rs:62:1
58    |
59 LL | impl OneAllowedImpl {}
60    | ^^^^^^^^^^^^^^^^^^^^^^
61
62 error: aborting due to 4 previous errors
63