]>
Commit | Line | Data |
---|---|---|
fc512014 | 1 | error[E0004]: non-exhaustive patterns: `u8::MAX` not covered |
5e7ed085 | 2 | --> $DIR/exhaustiveness.rs:47:8 |
fc512014 XL |
3 | | |
4 | LL | m!(0u8, 0..255); | |
5 | | ^^^ pattern `u8::MAX` not covered | |
6 | | | |
fc512014 | 7 | = note: the matched value is of type `u8` |
5e7ed085 FG |
8 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
9 | | | |
923072b8 FG |
10 | LL | match $s { $($t)+ => {}, u8::MAX => todo!() } |
11 | | ++++++++++++++++++++ | |
fc512014 XL |
12 | |
13 | error[E0004]: non-exhaustive patterns: `u8::MAX` not covered | |
5e7ed085 | 14 | --> $DIR/exhaustiveness.rs:48:8 |
fc512014 XL |
15 | | |
16 | LL | m!(0u8, 0..=254); | |
17 | | ^^^ pattern `u8::MAX` not covered | |
18 | | | |
fc512014 | 19 | = note: the matched value is of type `u8` |
5e7ed085 FG |
20 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
21 | | | |
923072b8 FG |
22 | LL | match $s { $($t)+ => {}, u8::MAX => todo!() } |
23 | | ++++++++++++++++++++ | |
fc512014 XL |
24 | |
25 | error[E0004]: non-exhaustive patterns: `0_u8` not covered | |
5e7ed085 | 26 | --> $DIR/exhaustiveness.rs:49:8 |
fc512014 XL |
27 | | |
28 | LL | m!(0u8, 1..=255); | |
29 | | ^^^ pattern `0_u8` not covered | |
30 | | | |
fc512014 | 31 | = note: the matched value is of type `u8` |
5e7ed085 FG |
32 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
33 | | | |
923072b8 FG |
34 | LL | match $s { $($t)+ => {}, 0_u8 => todo!() } |
35 | | +++++++++++++++++ | |
fc512014 XL |
36 | |
37 | error[E0004]: non-exhaustive patterns: `42_u8` not covered | |
5e7ed085 | 38 | --> $DIR/exhaustiveness.rs:50:8 |
fc512014 XL |
39 | | |
40 | LL | m!(0u8, 0..42 | 43..=255); | |
41 | | ^^^ pattern `42_u8` not covered | |
42 | | | |
fc512014 | 43 | = note: the matched value is of type `u8` |
5e7ed085 FG |
44 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
45 | | | |
923072b8 FG |
46 | LL | match $s { $($t)+ => {}, 42_u8 => todo!() } |
47 | | ++++++++++++++++++ | |
fc512014 XL |
48 | |
49 | error[E0004]: non-exhaustive patterns: `i8::MAX` not covered | |
5e7ed085 | 50 | --> $DIR/exhaustiveness.rs:51:8 |
fc512014 XL |
51 | | |
52 | LL | m!(0i8, -128..127); | |
53 | | ^^^ pattern `i8::MAX` not covered | |
54 | | | |
fc512014 | 55 | = note: the matched value is of type `i8` |
5e7ed085 FG |
56 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
57 | | | |
923072b8 FG |
58 | LL | match $s { $($t)+ => {}, i8::MAX => todo!() } |
59 | | ++++++++++++++++++++ | |
fc512014 XL |
60 | |
61 | error[E0004]: non-exhaustive patterns: `i8::MAX` not covered | |
5e7ed085 | 62 | --> $DIR/exhaustiveness.rs:52:8 |
fc512014 XL |
63 | | |
64 | LL | m!(0i8, -128..=126); | |
65 | | ^^^ pattern `i8::MAX` not covered | |
66 | | | |
fc512014 | 67 | = note: the matched value is of type `i8` |
5e7ed085 FG |
68 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
69 | | | |
923072b8 FG |
70 | LL | match $s { $($t)+ => {}, i8::MAX => todo!() } |
71 | | ++++++++++++++++++++ | |
fc512014 XL |
72 | |
73 | error[E0004]: non-exhaustive patterns: `i8::MIN` not covered | |
5e7ed085 | 74 | --> $DIR/exhaustiveness.rs:53:8 |
fc512014 XL |
75 | | |
76 | LL | m!(0i8, -127..=127); | |
77 | | ^^^ pattern `i8::MIN` not covered | |
78 | | | |
fc512014 | 79 | = note: the matched value is of type `i8` |
5e7ed085 FG |
80 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
81 | | | |
923072b8 FG |
82 | LL | match $s { $($t)+ => {}, i8::MIN => todo!() } |
83 | | ++++++++++++++++++++ | |
fc512014 XL |
84 | |
85 | error[E0004]: non-exhaustive patterns: `0_i8` not covered | |
5e7ed085 | 86 | --> $DIR/exhaustiveness.rs:54:11 |
fc512014 XL |
87 | | |
88 | LL | match 0i8 { | |
89 | | ^^^ pattern `0_i8` not covered | |
90 | | | |
fc512014 | 91 | = note: the matched value is of type `i8` |
5e7ed085 FG |
92 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
93 | | | |
94 | LL ~ 1 ..= i8::MAX => {} | |
95 | LL + 0_i8 => todo!() | |
96 | | | |
fc512014 XL |
97 | |
98 | error[E0004]: non-exhaustive patterns: `u128::MAX` not covered | |
5e7ed085 | 99 | --> $DIR/exhaustiveness.rs:59:8 |
fc512014 XL |
100 | | |
101 | LL | m!(0u128, 0..=ALMOST_MAX); | |
102 | | ^^^^^ pattern `u128::MAX` not covered | |
103 | | | |
fc512014 | 104 | = note: the matched value is of type `u128` |
5e7ed085 FG |
105 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
106 | | | |
923072b8 FG |
107 | LL | match $s { $($t)+ => {}, u128::MAX => todo!() } |
108 | | ++++++++++++++++++++++ | |
fc512014 XL |
109 | |
110 | error[E0004]: non-exhaustive patterns: `5_u128..=u128::MAX` not covered | |
5e7ed085 | 111 | --> $DIR/exhaustiveness.rs:60:8 |
fc512014 XL |
112 | | |
113 | LL | m!(0u128, 0..=4); | |
114 | | ^^^^^ pattern `5_u128..=u128::MAX` not covered | |
115 | | | |
fc512014 | 116 | = note: the matched value is of type `u128` |
5e7ed085 FG |
117 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
118 | | | |
923072b8 FG |
119 | LL | match $s { $($t)+ => {}, 5_u128..=u128::MAX => todo!() } |
120 | | +++++++++++++++++++++++++++++++ | |
fc512014 XL |
121 | |
122 | error[E0004]: non-exhaustive patterns: `0_u128` not covered | |
5e7ed085 | 123 | --> $DIR/exhaustiveness.rs:61:8 |
fc512014 XL |
124 | | |
125 | LL | m!(0u128, 1..=u128::MAX); | |
126 | | ^^^^^ pattern `0_u128` not covered | |
127 | | | |
fc512014 | 128 | = note: the matched value is of type `u128` |
5e7ed085 FG |
129 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
130 | | | |
923072b8 FG |
131 | LL | match $s { $($t)+ => {}, 0_u128 => todo!() } |
132 | | +++++++++++++++++++ | |
fc512014 XL |
133 | |
134 | error[E0004]: non-exhaustive patterns: `(126_u8..=127_u8, false)` not covered | |
5e7ed085 | 135 | --> $DIR/exhaustiveness.rs:69:11 |
fc512014 XL |
136 | | |
137 | LL | match (0u8, true) { | |
138 | | ^^^^^^^^^^^ pattern `(126_u8..=127_u8, false)` not covered | |
139 | | | |
fc512014 | 140 | = note: the matched value is of type `(u8, bool)` |
5e7ed085 FG |
141 | help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown |
142 | | | |
143 | LL ~ (0 ..= 255, true) => {} | |
144 | LL + (126_u8..=127_u8, false) => todo!() | |
145 | | | |
fc512014 XL |
146 | |
147 | error: aborting due to 12 previous errors | |
148 | ||
149 | For more information about this error, try `rustc --explain E0004`. |