]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31221.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-31221.stderr
1 error: unreachable pattern
2   --> $DIR/issue-31221.rs:18:9
3    |
4 LL |         Var3 => (),
5    |         ---- matches any value
6 LL |         Var2 => (),
7    |         ^^^^ unreachable pattern
8    |
9 note: lint level defined here
10   --> $DIR/issue-31221.rs:4:9
11    |
12 LL | #![deny(unreachable_patterns)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 error: unreachable pattern
16   --> $DIR/issue-31221.rs:24:9
17    |
18 LL |         &Var3 => (),
19    |         ----- matches any value
20 LL |         &Var2 => (),
21    |         ^^^^^ unreachable pattern
22
23 error: unreachable pattern
24   --> $DIR/issue-31221.rs:31:9
25    |
26 LL |         (c, d) => (),
27    |         ------ matches any value
28 LL |         anything => ()
29    |         ^^^^^^^^ unreachable pattern
30
31 error: aborting due to 3 previous errors
32