1 error: this `match` has identical arm bodies
2 --> $DIR/match_same_arms.rs:13:14
4 LL | _ => 0, //~ ERROR match arms have same body
7 = note: `-D clippy::match-same-arms` implied by `-D warnings`
9 --> $DIR/match_same_arms.rs:11:19
13 note: `Abc::A` has the same arm body as the `_` wildcard, consider removing it
14 --> $DIR/match_same_arms.rs:11:19
19 error: this `match` has identical arm bodies
20 --> $DIR/match_same_arms.rs:18:20
22 LL | (.., 3) => 42, //~ ERROR match arms have same body
26 --> $DIR/match_same_arms.rs:17:23
28 LL | (1, .., 3) => 42,
30 help: consider refactoring into `(1, .., 3) | (.., 3)`
31 --> $DIR/match_same_arms.rs:17:9
33 LL | (1, .., 3) => 42,
35 = help: ...or consider changing the match arm bodies
37 error: this `match` has identical arm bodies
38 --> $DIR/match_same_arms.rs:24:15
40 LL | 51 => 1, //~ ERROR match arms have same body
44 --> $DIR/match_same_arms.rs:23:15
48 help: consider refactoring into `42 | 51`
49 --> $DIR/match_same_arms.rs:23:9
53 = help: ...or consider changing the match arm bodies
55 error: this `match` has identical arm bodies
56 --> $DIR/match_same_arms.rs:26:15
58 LL | 52 => 2, //~ ERROR match arms have same body
62 --> $DIR/match_same_arms.rs:25:15
66 help: consider refactoring into `41 | 52`
67 --> $DIR/match_same_arms.rs:25:9
71 = help: ...or consider changing the match arm bodies
73 error: this `match` has identical arm bodies
74 --> $DIR/match_same_arms.rs:32:14
76 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
80 --> $DIR/match_same_arms.rs:31:14
84 help: consider refactoring into `1 | 2`
85 --> $DIR/match_same_arms.rs:31:9
89 = help: ...or consider changing the match arm bodies
91 error: this `match` has identical arm bodies
92 --> $DIR/match_same_arms.rs:33:14
94 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
98 --> $DIR/match_same_arms.rs:31:14
102 help: consider refactoring into `1 | 3`
103 --> $DIR/match_same_arms.rs:31:9
107 = help: ...or consider changing the match arm bodies
109 error: this `match` has identical arm bodies
110 --> $DIR/match_same_arms.rs:33:14
112 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
116 --> $DIR/match_same_arms.rs:32:14
118 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
120 help: consider refactoring into `2 | 3`
121 --> $DIR/match_same_arms.rs:32:9
123 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
125 = help: ...or consider changing the match arm bodies
127 error: this `match` has identical arm bodies
128 --> $DIR/match_same_arms.rs:50:55
130 LL | CommandInfo::External { name, .. } => name.to_string(),
134 --> $DIR/match_same_arms.rs:49:54
136 LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
138 help: consider refactoring into `CommandInfo::BuiltIn { name, .. } | CommandInfo::External { name, .. }`
139 --> $DIR/match_same_arms.rs:49:17
141 LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
142 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143 = help: ...or consider changing the match arm bodies
145 error: aborting due to 8 previous errors