fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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