1 error: this match arm has an identical body to the `_` wildcard arm
2 --> $DIR/match_same_arms.rs:11:9
5 | ^^^^^^^^^^^ help: try removing the arm
7 = note: `-D clippy::match-same-arms` implied by `-D warnings`
8 = help: or try changing either arm body
9 note: `_` wildcard arm here
10 --> $DIR/match_same_arms.rs:13:9
12 LL | _ => 0, //~ ERROR match arms have same body
15 error: this match arm has an identical body to another arm
16 --> $DIR/match_same_arms.rs:17:9
18 LL | (1, .., 3) => 42,
21 | help: try merging the arm patterns: `(1, .., 3) | (.., 3)`
23 = help: or try changing either arm body
25 --> $DIR/match_same_arms.rs:18:9
27 LL | (.., 3) => 42, //~ ERROR match arms have same body
30 error: this match arm has an identical body to another arm
31 --> $DIR/match_same_arms.rs:24:9
33 LL | 51 => 1, //~ ERROR match arms have same body
36 | help: try merging the arm patterns: `51 | 42`
38 = help: or try changing either arm body
40 --> $DIR/match_same_arms.rs:23:9
45 error: this match arm has an identical body to another arm
46 --> $DIR/match_same_arms.rs:25:9
51 | help: try merging the arm patterns: `41 | 52`
53 = help: or try changing either arm body
55 --> $DIR/match_same_arms.rs:26:9
57 LL | 52 => 2, //~ ERROR match arms have same body
60 error: this match arm has an identical body to another arm
61 --> $DIR/match_same_arms.rs:32:9
63 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
66 | help: try merging the arm patterns: `2 | 1`
68 = help: or try changing either arm body
70 --> $DIR/match_same_arms.rs:31:9
75 error: this match arm has an identical body to another arm
76 --> $DIR/match_same_arms.rs:33:9
78 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
81 | help: try merging the arm patterns: `3 | 1`
83 = help: or try changing either arm body
85 --> $DIR/match_same_arms.rs:31:9
90 error: this match arm has an identical body to another arm
91 --> $DIR/match_same_arms.rs:32:9
93 LL | 2 => 2, //~ ERROR 2nd matched arms have same body
96 | help: try merging the arm patterns: `2 | 3`
98 = help: or try changing either arm body
100 --> $DIR/match_same_arms.rs:33:9
102 LL | 3 => 2, //~ ERROR 3rd matched arms have same body
105 error: this match arm has an identical body to another arm
106 --> $DIR/match_same_arms.rs:50:17
108 LL | CommandInfo::External { name, .. } => name.to_string(),
109 | ----------------------------------^^^^^^^^^^^^^^^^^^^^
111 | help: try merging the arm patterns: `CommandInfo::External { name, .. } | CommandInfo::BuiltIn { name, .. }`
113 = help: or try changing either arm body
115 --> $DIR/match_same_arms.rs:49:17
117 LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
118 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120 error: aborting due to 8 previous errors