mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> tests/ui/wild_in_or_pats.rs:8:9
|
|
|
|
|
LL | "bar" | _ => {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::wildcard_in_or_patterns)]`
|
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> tests/ui/wild_in_or_pats.rs:17:9
|
|
|
|
|
LL | "bar" | "bar2" | _ => {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> tests/ui/wild_in_or_pats.rs:26:9
|
|
|
|
|
LL | _ | "bar" | _ => {
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> tests/ui/wild_in_or_pats.rs:35:9
|
|
|
|
|
LL | _ | "bar" => {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
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
|
|
|