2020-01-02 19:00:27 +00:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway.
|
2020-01-05 14:05:16 +00:00
|
|
|
--> $DIR/wild_in_or_pats.rs:10:9
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
|
|
|
LL | "bar" | _ => {
|
2020-01-02 19:00:27 +00:00
|
|
|
| ^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
2020-01-05 14:05:16 +00:00
|
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
2019-12-24 15:42:09 +00:00
|
|
|
|
2020-01-02 19:00:27 +00:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway.
|
2020-01-05 14:05:16 +00:00
|
|
|
--> $DIR/wild_in_or_pats.rs:18:9
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
|
|
|
LL | "bar" | "bar2" | _ => {
|
2020-01-02 19:00:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
|
2019-12-24 15:42:09 +00:00
|
|
|
|
2020-01-02 19:00:27 +00:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway.
|
2020-01-05 14:05:16 +00:00
|
|
|
--> $DIR/wild_in_or_pats.rs:26:9
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
|
|
|
LL | _ | "bar" | _ => {
|
2020-01-02 19:00:27 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
|
2019-12-24 15:42:09 +00:00
|
|
|
|
2020-01-02 19:00:27 +00:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway.
|
2020-01-05 14:05:16 +00:00
|
|
|
--> $DIR/wild_in_or_pats.rs:34:9
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
|
|
|
LL | _ | "bar" => {
|
2020-01-02 19:00:27 +00:00
|
|
|
| ^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
|
2019-12-24 15:42:09 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|