@@ -53,6 +53,7 @@ help: consider refactoring into `42 | 51`
53
53
|
54
54
LL | 42 => foo(),
55
55
| ^^
56
+ = help: ...or consider changing the match arm bodies
56
57
57
58
error: this `match` has identical arm bodies
58
59
--> $DIR/match_same_arms2.rs:40:17
@@ -70,6 +71,7 @@ help: consider refactoring into `Some(_) | None`
70
71
|
71
72
LL | Some(_) => 24,
72
73
| ^^^^^^^
74
+ = help: ...or consider changing the match arm bodies
73
75
74
76
error: this `match` has identical arm bodies
75
77
--> $DIR/match_same_arms2.rs:62:28
@@ -87,6 +89,7 @@ help: consider refactoring into `(Some(a), None) | (None, Some(a))`
87
89
|
88
90
LL | (Some(a), None) => bar(a),
89
91
| ^^^^^^^^^^^^^^^
92
+ = help: ...or consider changing the match arm bodies
90
93
91
94
error: this `match` has identical arm bodies
92
95
--> $DIR/match_same_arms2.rs:68:26
@@ -104,6 +107,7 @@ help: consider refactoring into `(Some(a), ..) | (.., Some(a))`
104
107
|
105
108
LL | (Some(a), ..) => bar(a),
106
109
| ^^^^^^^^^^^^^
110
+ = help: ...or consider changing the match arm bodies
107
111
108
112
error: this `match` has identical arm bodies
109
113
--> $DIR/match_same_arms2.rs:102:29
@@ -121,6 +125,7 @@ help: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
121
125
|
122
126
LL | (Ok(x), Some(_)) => println!("ok {}", x),
123
127
| ^^^^^^^^^^^^^^^^
128
+ = help: ...or consider changing the match arm bodies
124
129
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
125
130
126
131
error: this `match` has identical arm bodies
@@ -139,6 +144,7 @@ help: consider refactoring into `Ok(3) | Ok(_)`
139
144
|
140
145
LL | Ok(3) => println!("ok"),
141
146
| ^^^^^
147
+ = help: ...or consider changing the match arm bodies
142
148
= note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
143
149
144
150
error: this `match` has identical arm bodies
@@ -163,6 +169,7 @@ help: consider refactoring into `0 | 1`
163
169
|
164
170
LL | 0 => {
165
171
| ^
172
+ = help: ...or consider changing the match arm bodies
166
173
167
174
error: match expression looks like `matches!` macro
168
175
--> $DIR/match_same_arms2.rs:162:16
0 commit comments