2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-01-03 00:39:07 +00:00
rust-clippy/tests/ui/wild_in_or_pats.stderr

36 lines
996 B
Text
Raw Normal View History

error: wildcard pattern covers any other pattern as it will match anyway
2020-01-07 17:13:31 +00:00
--> $DIR/wild_in_or_pats.rs:8:9
|
LL | "bar" | _ => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^
|
= help: consider handling `_` separately
2022-09-22 16:04:22 +00:00
= 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" | _ => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^^^^^^^^^^
|
= 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" | _ => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^^^^^
|
= 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" => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^
|
= help: consider handling `_` separately
error: aborting due to 4 previous errors