]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/wild_in_or_pats.stderr
Rollup merge of #102581 - jyn514:src-detection, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / wild_in_or_pats.stderr
1 error: wildcard pattern covers any other pattern as it will match anyway
2   --> $DIR/wild_in_or_pats.rs:8:9
3    |
4 LL |         "bar" | _ => {
5    |         ^^^^^^^^^
6    |
7    = help: consider handling `_` separately
8    = note: `-D clippy::wildcard-in-or-patterns` implied by `-D warnings`
9
10 error: wildcard pattern covers any other pattern as it will match anyway
11   --> $DIR/wild_in_or_pats.rs:16:9
12    |
13 LL |         "bar" | "bar2" | _ => {
14    |         ^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider handling `_` separately
17
18 error: wildcard pattern covers any other pattern as it will match anyway
19   --> $DIR/wild_in_or_pats.rs:24:9
20    |
21 LL |         _ | "bar" | _ => {
22    |         ^^^^^^^^^^^^^
23    |
24    = help: consider handling `_` separately
25
26 error: wildcard pattern covers any other pattern as it will match anyway
27   --> $DIR/wild_in_or_pats.rs:32:9
28    |
29 LL |         _ | "bar" => {
30    |         ^^^^^^^^^
31    |
32    = help: consider handling `_` separately
33
34 error: aborting due to 4 previous errors
35