]> git.lizzy.rs Git - rust.git/blob - tests/ui/pats_with_wild_match_arm.stderr
Handle case for non-exhaustive enums
[rust.git] / tests / ui / pats_with_wild_match_arm.stderr
1 error: wildcard pattern covers any other pattern as it will match anyway.
2   --> $DIR/pats_with_wild_match_arm.rs:10:9
3    |
4 LL |         "bar" | _ => {
5    |         ^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
6    |
7    = note: `-D clippy::pats-with-wild-match-arm` implied by `-D warnings`
8
9 error: wildcard pattern covers any other pattern as it will match anyway.
10   --> $DIR/pats_with_wild_match_arm.rs:18:9
11    |
12 LL |         "bar" | "bar2" | _ => {
13    |         ^^^^^^^^^^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
14
15 error: wildcard pattern covers any other pattern as it will match anyway.
16   --> $DIR/pats_with_wild_match_arm.rs:26:9
17    |
18 LL |         _ | "bar" | _ => {
19    |         ^^^^^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
20
21 error: wildcard pattern covers any other pattern as it will match anyway.
22   --> $DIR/pats_with_wild_match_arm.rs:34:9
23    |
24 LL |         _ | "bar" => {
25    |         ^^^^^^^^^ help: consider replacing with wildcard pattern only: `_`
26
27 error: aborting due to 4 previous errors
28