rust/tests/ui/wild_in_or_pats.stderr

36 lines
1004 B
Plaintext
Raw Normal View History

2020-01-02 19:00:27 +00:00
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
| ^^^^^^^^^
|
= note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
2020-01-07 17:13:31 +00:00
= help: Consider handling `_` separately.
2020-01-02 19:00:27 +00:00
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:16:9
|
LL | "bar" | "bar2" | _ => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^^^^^^^^^^
|
= help: Consider handling `_` separately.
2020-01-02 19:00:27 +00:00
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:24:9
|
LL | _ | "bar" | _ => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^^^^^
|
= help: Consider handling `_` separately.
2020-01-02 19:00:27 +00:00
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:32:9
|
LL | _ | "bar" => {
2020-01-07 17:13:31 +00:00
| ^^^^^^^^^
|
= help: Consider handling `_` separately.
error: aborting due to 4 previous errors