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