2021-03-12 08:30:50 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/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
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
= help: consider handling `_` separately
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::wildcard_in_or_patterns)]`
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/wild_in_or_pats.rs:17:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | "bar" | "bar2" | _ => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/wild_in_or_pats.rs:26:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | _ | "bar" | _ => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/wild_in_or_pats.rs:35:9
|
2019-12-24 09:42:09 -06:00
|
|
|
|
|
|
|
|
LL | _ | "bar" => {
|
2020-01-07 11:13:31 -06:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2021-03-12 08:30:50 -06:00
|
|
|
= help: consider handling `_` separately
|
2019-12-24 09:42:09 -06:00
|
|
|
|
2024-10-03 09:32:51 -05:00
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
|
|
--> tests/ui/wild_in_or_pats.rs:69:9
|
|
|
|
|
|
|
|
|
LL | ExhaustiveEnum::Quit | _ => {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
|
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
|
|
--> tests/ui/wild_in_or_pats.rs:104:9
|
|
|
|
|
|
|
|
|
LL | ExhaustiveStruct { x: 1, y: 1 } | _ => {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-12-24 09:42:09 -06:00
|
|
|
|