]> git.lizzy.rs Git - rust.git/blob - src/test/ui/uninhabited/uninhabited-matches-feature-gated.stderr
Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-match, r=QuietMisdreavus
[rust.git] / src / test / ui / uninhabited / uninhabited-matches-feature-gated.stderr
1 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
2   --> $DIR/uninhabited-matches-feature-gated.rs:15:19
3    |
4 LL |     let _ = match x {   //~ ERROR non-exhaustive
5    |                   ^ pattern `Err(_)` not covered
6
7 error[E0004]: non-exhaustive patterns: type `&Void` is non-empty
8   --> $DIR/uninhabited-matches-feature-gated.rs:20:19
9    |
10 LL |     let _ = match x {}; //~ ERROR non-exhaustive
11    |                   ^
12    |
13 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
14   --> $DIR/uninhabited-matches-feature-gated.rs:20:19
15    |
16 LL |     let _ = match x {}; //~ ERROR non-exhaustive
17    |                   ^
18
19 error[E0004]: non-exhaustive patterns: type `(Void,)` is non-empty
20   --> $DIR/uninhabited-matches-feature-gated.rs:23:19
21    |
22 LL |     let _ = match x {}; //~ ERROR non-exhaustive
23    |                   ^
24    |
25 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26   --> $DIR/uninhabited-matches-feature-gated.rs:23:19
27    |
28 LL |     let _ = match x {}; //~ ERROR non-exhaustive
29    |                   ^
30
31 error[E0004]: non-exhaustive patterns: type `[Void; 1]` is non-empty
32   --> $DIR/uninhabited-matches-feature-gated.rs:26:19
33    |
34 LL |     let _ = match x {}; //~ ERROR non-exhaustive
35    |                   ^
36    |
37 help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
38   --> $DIR/uninhabited-matches-feature-gated.rs:26:19
39    |
40 LL |     let _ = match x {}; //~ ERROR non-exhaustive
41    |                   ^
42
43 error[E0004]: non-exhaustive patterns: `&[_]` not covered
44   --> $DIR/uninhabited-matches-feature-gated.rs:29:19
45    |
46 LL |     let _ = match x {   //~ ERROR non-exhaustive
47    |                   ^ pattern `&[_]` not covered
48
49 error[E0004]: non-exhaustive patterns: `Err(_)` not covered
50   --> $DIR/uninhabited-matches-feature-gated.rs:37:19
51    |
52 LL |     let _ = match x {   //~ ERROR non-exhaustive
53    |                   ^ pattern `Err(_)` not covered
54
55 error[E0005]: refutable pattern in local binding: `Err(_)` not covered
56   --> $DIR/uninhabited-matches-feature-gated.rs:42:9
57    |
58 LL |     let Ok(x) = x;
59    |         ^^^^^ pattern `Err(_)` not covered
60
61 error: aborting due to 7 previous errors
62
63 Some errors occurred: E0004, E0005.
64 For more information about an error, try `rustc --explain E0004`.