]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: wildcard pattern covers any other pattern as it will match anyway |
2 | --> $DIR/wild_in_or_pats.rs:8:9 | |
3 | | | |
4 | LL | "bar" | _ => { | |
5 | | ^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings` | |
8 | = help: consider handling `_` separately | |
9 | ||
10 | error: wildcard pattern covers any other pattern as it will match anyway | |
11 | --> $DIR/wild_in_or_pats.rs:16:9 | |
12 | | | |
13 | LL | "bar" | "bar2" | _ => { | |
14 | | ^^^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = help: consider handling `_` separately | |
17 | ||
18 | error: wildcard pattern covers any other pattern as it will match anyway | |
19 | --> $DIR/wild_in_or_pats.rs:24:9 | |
20 | | | |
21 | LL | _ | "bar" | _ => { | |
22 | | ^^^^^^^^^^^^^ | |
23 | | | |
24 | = help: consider handling `_` separately | |
25 | ||
26 | error: wildcard pattern covers any other pattern as it will match anyway | |
27 | --> $DIR/wild_in_or_pats.rs:32:9 | |
28 | | | |
29 | LL | _ | "bar" => { | |
30 | | ^^^^^^^^^ | |
31 | | | |
32 | = help: consider handling `_` separately | |
33 | ||
34 | error: aborting due to 4 previous errors | |
35 |