]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/integer-ranges/exhaustiveness.stderr
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / integer-ranges / exhaustiveness.stderr
1 error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
2   --> $DIR/exhaustiveness.rs:48:8
3    |
4 LL |     m!(0u8, 0..255);
5    |        ^^^ pattern `u8::MAX` not covered
6    |
7    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8    = note: the matched value is of type `u8`
9
10 error[E0004]: non-exhaustive patterns: `u8::MAX` not covered
11   --> $DIR/exhaustiveness.rs:49:8
12    |
13 LL |     m!(0u8, 0..=254);
14    |        ^^^ pattern `u8::MAX` not covered
15    |
16    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17    = note: the matched value is of type `u8`
18
19 error[E0004]: non-exhaustive patterns: `0_u8` not covered
20   --> $DIR/exhaustiveness.rs:50:8
21    |
22 LL |     m!(0u8, 1..=255);
23    |        ^^^ pattern `0_u8` not covered
24    |
25    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26    = note: the matched value is of type `u8`
27
28 error[E0004]: non-exhaustive patterns: `42_u8` not covered
29   --> $DIR/exhaustiveness.rs:51:8
30    |
31 LL |     m!(0u8, 0..42 | 43..=255);
32    |        ^^^ pattern `42_u8` not covered
33    |
34    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
35    = note: the matched value is of type `u8`
36
37 error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
38   --> $DIR/exhaustiveness.rs:52:8
39    |
40 LL |     m!(0i8, -128..127);
41    |        ^^^ pattern `i8::MAX` not covered
42    |
43    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
44    = note: the matched value is of type `i8`
45
46 error[E0004]: non-exhaustive patterns: `i8::MAX` not covered
47   --> $DIR/exhaustiveness.rs:53:8
48    |
49 LL |     m!(0i8, -128..=126);
50    |        ^^^ pattern `i8::MAX` not covered
51    |
52    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
53    = note: the matched value is of type `i8`
54
55 error[E0004]: non-exhaustive patterns: `i8::MIN` not covered
56   --> $DIR/exhaustiveness.rs:54:8
57    |
58 LL |     m!(0i8, -127..=127);
59    |        ^^^ pattern `i8::MIN` not covered
60    |
61    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
62    = note: the matched value is of type `i8`
63
64 error[E0004]: non-exhaustive patterns: `0_i8` not covered
65   --> $DIR/exhaustiveness.rs:55:11
66    |
67 LL |     match 0i8 {
68    |           ^^^ pattern `0_i8` not covered
69    |
70    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
71    = note: the matched value is of type `i8`
72
73 error[E0004]: non-exhaustive patterns: `u128::MAX` not covered
74   --> $DIR/exhaustiveness.rs:60:8
75    |
76 LL |     m!(0u128, 0..=ALMOST_MAX);
77    |        ^^^^^ pattern `u128::MAX` not covered
78    |
79    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
80    = note: the matched value is of type `u128`
81
82 error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered
83   --> $DIR/exhaustiveness.rs:61:8
84    |
85 LL |     m!(0u128, 0..=4);
86    |        ^^^^^ pattern `5_u128..=u128::MAX` not covered
87    |
88    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
89    = note: the matched value is of type `u128`
90
91 error[E0004]: non-exhaustive patterns: `0_u128` not covered
92   --> $DIR/exhaustiveness.rs:62:8
93    |
94 LL |     m!(0u128, 1..=u128::MAX);
95    |        ^^^^^ pattern `0_u128` not covered
96    |
97    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98    = note: the matched value is of type `u128`
99
100 error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered
101   --> $DIR/exhaustiveness.rs:70:11
102    |
103 LL |     match (0u8, true) {
104    |           ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered
105    |
106    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
107    = note: the matched value is of type `(u8, bool)`
108
109 error: aborting due to 12 previous errors
110
111 For more information about this error, try `rustc --explain E0004`.