2021-03-12 15:30:50 +01:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2020-01-07 18:13:31 +01:00
|
|
|
--> $DIR/wild_in_or_pats.rs:8:9
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
|
|
|
LL | "bar" | _ => {
|
2020-01-07 18:13:31 +01:00
|
|
|
| ^^^^^^^^^
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
= help: consider handling `_` separately
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::wildcard_in_or_patterns)]`
|
2019-12-24 16:42:09 +01:00
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/wild_in_or_pats.rs:17:9
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
|
|
|
LL | "bar" | "bar2" | _ => {
|
2020-01-07 18:13:31 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 16:42:09 +01:00
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/wild_in_or_pats.rs:26:9
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
|
|
|
LL | _ | "bar" | _ => {
|
2020-01-07 18:13:31 +01:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 16:42:09 +01:00
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/wild_in_or_pats.rs:35:9
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
|
|
|
LL | _ | "bar" => {
|
2020-01-07 18:13:31 +01:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2021-03-12 15:30:50 +01:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 16:42:09 +01:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|