1 error[E0004]: non-exhaustive patterns: `&[false, _]` not covered
2 --> $DIR/slice-patterns-exhaustiveness.rs:8:11
5 | ^^ pattern `&[false, _]` not covered
7 = note: the matched value is of type `&[bool; 2]`
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
10 LL ~ [true, .., true] => {}
11 LL + &[false, _] => todo!()
14 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
15 --> $DIR/slice-patterns-exhaustiveness.rs:12:11
18 | ^^ pattern `&[false, ..]` not covered
20 = note: the matched value is of type `&[bool; 3]`
21 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
23 LL ~ [true, .., true] => {}
24 LL + &[false, ..] => todo!()
27 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
28 --> $DIR/slice-patterns-exhaustiveness.rs:16:11
31 | ^^^ pattern `&[false, ..]` not covered
33 = note: the matched value is of type `&[bool; 10]`
34 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
36 LL ~ [true, .., true] => {}
37 LL + &[false, ..] => todo!()
40 error[E0004]: non-exhaustive patterns: `&[false, true]` not covered
41 --> $DIR/slice-patterns-exhaustiveness.rs:25:11
44 | ^^ pattern `&[false, true]` not covered
46 = note: the matched value is of type `&[bool; 2]`
47 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
49 LL ~ [.., false] => {}
50 LL + &[false, true] => todo!()
53 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
54 --> $DIR/slice-patterns-exhaustiveness.rs:30:11
57 | ^^ pattern `&[false, .., true]` not covered
59 = note: the matched value is of type `&[bool; 3]`
60 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
62 LL ~ [.., false] => {}
63 LL + &[false, .., true] => todo!()
66 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
67 --> $DIR/slice-patterns-exhaustiveness.rs:35:11
70 | ^ pattern `&[false, .., true]` not covered
72 = note: the matched value is of type `&[bool]`
73 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
75 LL ~ [.., false] => {}
76 LL + &[false, .., true] => todo!()
79 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
80 --> $DIR/slice-patterns-exhaustiveness.rs:42:11
83 | ^ pattern `&[_, ..]` not covered
85 = note: the matched value is of type `&[bool]`
86 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
89 LL + &[_, ..] => todo!()
92 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
93 --> $DIR/slice-patterns-exhaustiveness.rs:46:11
96 | ^ pattern `&[_, _, ..]` not covered
98 = note: the matched value is of type `&[bool]`
99 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
102 LL + &[_, _, ..] => todo!()
105 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
106 --> $DIR/slice-patterns-exhaustiveness.rs:51:11
109 | ^ pattern `&[false, ..]` not covered
111 = note: the matched value is of type `&[bool]`
112 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
114 LL ~ [true, ..] => {}
115 LL + &[false, ..] => todo!()
118 error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered
119 --> $DIR/slice-patterns-exhaustiveness.rs:56:11
122 | ^ pattern `&[false, _, ..]` not covered
124 = note: the matched value is of type `&[bool]`
125 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
127 LL ~ [true, ..] => {}
128 LL + &[false, _, ..] => todo!()
131 error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered
132 --> $DIR/slice-patterns-exhaustiveness.rs:62:11
135 | ^ pattern `&[_, .., false]` not covered
137 = note: the matched value is of type `&[bool]`
138 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
140 LL ~ [.., true] => {}
141 LL + &[_, .., false] => todo!()
144 error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered
145 --> $DIR/slice-patterns-exhaustiveness.rs:69:11
148 | ^ pattern `&[_, _, .., true]` not covered
150 = note: the matched value is of type `&[bool]`
151 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
153 LL ~ [.., false] => {}
154 LL + &[_, _, .., true] => todo!()
157 error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered
158 --> $DIR/slice-patterns-exhaustiveness.rs:76:11
161 | ^ pattern `&[true, _, .., _]` not covered
163 = note: the matched value is of type `&[bool]`
164 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
166 LL ~ [false, .., false] => {}
167 LL + &[true, _, .., _] => todo!()
170 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
171 --> $DIR/slice-patterns-exhaustiveness.rs:85:11
174 | ^ patterns `&[]` and `&[_, _, ..]` not covered
176 = note: the matched value is of type `&[bool]`
177 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
180 LL + &[] | &[_, _, ..] => todo!()
183 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
184 --> $DIR/slice-patterns-exhaustiveness.rs:89:11
187 | ^ patterns `&[]` and `&[_, _, ..]` not covered
189 = note: the matched value is of type `&[bool]`
190 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
193 LL + &[] | &[_, _, ..] => todo!()
196 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
197 --> $DIR/slice-patterns-exhaustiveness.rs:93:11
200 | ^ patterns `&[]` and `&[_, _, ..]` not covered
202 = note: the matched value is of type `&[bool]`
203 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
206 LL + &[] | &[_, _, ..] => todo!()
209 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
210 --> $DIR/slice-patterns-exhaustiveness.rs:98:11
213 | ^ patterns `&[]` and `&[_, _, ..]` not covered
215 = note: the matched value is of type `&[bool]`
216 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
219 LL + &[] | &[_, _, ..] => todo!()
222 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
223 --> $DIR/slice-patterns-exhaustiveness.rs:103:11
226 | ^ pattern `&[_, _, ..]` not covered
228 = note: the matched value is of type `&[bool]`
229 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
232 LL + &[_, _, ..] => todo!()
235 error[E0004]: non-exhaustive patterns: `&[false]` not covered
236 --> $DIR/slice-patterns-exhaustiveness.rs:108:11
239 | ^ pattern `&[false]` not covered
241 = note: the matched value is of type `&[bool]`
242 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
244 LL ~ &[_, _, ..] => {}
245 LL + &[false] => todo!()
248 error[E0004]: non-exhaustive patterns: `&[false]` not covered
249 --> $DIR/slice-patterns-exhaustiveness.rs:121:11
252 | ^^ pattern `&[false]` not covered
254 = note: the matched value is of type `&[bool; 1]`
255 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
258 LL + &[false] => todo!()
261 error: aborting due to 20 previous errors
263 For more information about this error, try `rustc --explain E0004`.