mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
35 lines
996 B
Text
35 lines
996 B
Text
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> $DIR/wild_in_or_pats.rs:8:9
|
|
|
|
|
LL | "bar" | _ => {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
|
|
|
|
error: wildcard pattern covers any other pattern as it will match anyway
|
|
--> $DIR/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
|
|
--> $DIR/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
|
|
--> $DIR/wild_in_or_pats.rs:35:9
|
|
|
|
|
LL | _ | "bar" => {
|
|
| ^^^^^^^^^
|
|
|
|
|
= help: consider handling `_` separately
|
|
|
|
error: aborting due to 4 previous errors
|
|
|