2021-02-24 07:02:51 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2020-01-07 11:13:31 -06:00
|
|
|
--> $DIR/wild_in_or_pats.rs:8:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | "bar" | _ => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
2020-01-05 08:05:16 -06:00
|
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
2021-02-24 07:02:51 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2020-01-07 11:13:31 -06:00
|
|
|
--> $DIR/wild_in_or_pats.rs:16:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | "bar" | "bar2" | _ => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2020-01-07 11:13:31 -06:00
|
|
|
--> $DIR/wild_in_or_pats.rs:24:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | _ | "bar" | _ => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2020-01-07 11:13:31 -06:00
|
|
|
--> $DIR/wild_in_or_pats.rs:32:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | _ | "bar" => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2021-02-24 07:02:51 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|