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,
36 error: this `match` has identical arm bodies
37 --> $DIR/match_same_arms.rs:24:15
39 LL | 51 => 1, //~ ERROR match arms have same body
43 --> $DIR/match_same_arms.rs:23:15
47 help: consider refactoring into `42 | 51`
48 --> $DIR/match_same_arms.rs:23:9
53 error: this `match` has identical arm bodies
54 --> $DIR/match_same_arms.rs:26:15
56 LL | 52 => 2, //~ ERROR match arms have same body
60 --> $DIR/match_same_arms.rs:25:15
64 help: consider refactoring into `41 | 52`
65 --> $DIR/match_same_arms.rs:25:9
70 error: this `match` has identical arm bodies
71 --> $DIR/match_same_arms.rs:32:14
73 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
77 --> $DIR/match_same_arms.rs:31:14
81 help: consider refactoring into `1 | 2`
82 --> $DIR/match_same_arms.rs:31:9
87 error: this `match` has identical arm bodies
88 --> $DIR/match_same_arms.rs:33:14
90 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
94 --> $DIR/match_same_arms.rs:31:14
98 help: consider refactoring into `1 | 3`
99 --> $DIR/match_same_arms.rs:31:9
104 error: this `match` has identical arm bodies
105 --> $DIR/match_same_arms.rs:33:14
107 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
111 --> $DIR/match_same_arms.rs:32:14
113 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
115 help: consider refactoring into `2 | 3`
116 --> $DIR/match_same_arms.rs:32:9
118 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
121 error: this `match` has identical arm bodies
122 --> $DIR/match_same_arms.rs:50:55
124 LL | CommandInfo::External { name, .. } => name.to_string(),
128 --> $DIR/match_same_arms.rs:49:54
130 LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
132 help: consider refactoring into `CommandInfo::BuiltIn { name, .. } | CommandInfo::External { name, .. }`
133 --> $DIR/match_same_arms.rs:49:17
135 LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
138 error: aborting due to 8 previous errors