]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr
Auto merge of #98526 - jyn514:download-llvm-outside-checkout, r=Mark-Simulacrum
[rust.git] / src / test / ui / pattern / usefulness / slice-patterns-exhaustiveness.stderr
1 error[E0004]: non-exhaustive patterns: `&[false, _]` not covered
2   --> $DIR/slice-patterns-exhaustiveness.rs:8:11
3    |
4 LL |     match s2 {
5    |           ^^ pattern `&[false, _]` not covered
6    |
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
9    |
10 LL ~         [true, .., true] => {}
11 LL +         &[false, _] => todo!()
12    |
13
14 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
15   --> $DIR/slice-patterns-exhaustiveness.rs:12:11
16    |
17 LL |     match s3 {
18    |           ^^ pattern `&[false, ..]` not covered
19    |
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
22    |
23 LL ~         [true, .., true] => {}
24 LL +         &[false, ..] => todo!()
25    |
26
27 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
28   --> $DIR/slice-patterns-exhaustiveness.rs:16:11
29    |
30 LL |     match s10 {
31    |           ^^^ pattern `&[false, ..]` not covered
32    |
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
35    |
36 LL ~         [true, .., true] => {}
37 LL +         &[false, ..] => todo!()
38    |
39
40 error[E0004]: non-exhaustive patterns: `&[false, true]` not covered
41   --> $DIR/slice-patterns-exhaustiveness.rs:25:11
42    |
43 LL |     match s2 {
44    |           ^^ pattern `&[false, true]` not covered
45    |
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
48    |
49 LL ~         [.., false] => {}
50 LL +         &[false, true] => todo!()
51    |
52
53 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
54   --> $DIR/slice-patterns-exhaustiveness.rs:30:11
55    |
56 LL |     match s3 {
57    |           ^^ pattern `&[false, .., true]` not covered
58    |
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
61    |
62 LL ~         [.., false] => {}
63 LL +         &[false, .., true] => todo!()
64    |
65
66 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
67   --> $DIR/slice-patterns-exhaustiveness.rs:35:11
68    |
69 LL |     match s {
70    |           ^ pattern `&[false, .., true]` not covered
71    |
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
74    |
75 LL ~         [.., false] => {}
76 LL +         &[false, .., true] => todo!()
77    |
78
79 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
80   --> $DIR/slice-patterns-exhaustiveness.rs:42:11
81    |
82 LL |     match s {
83    |           ^ pattern `&[_, ..]` not covered
84    |
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
87    |
88 LL ~         [] => {}
89 LL +         &[_, ..] => todo!()
90    |
91
92 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
93   --> $DIR/slice-patterns-exhaustiveness.rs:46:11
94    |
95 LL |     match s {
96    |           ^ pattern `&[_, _, ..]` not covered
97    |
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
100    |
101 LL ~         [_] => {}
102 LL +         &[_, _, ..] => todo!()
103    |
104
105 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
106   --> $DIR/slice-patterns-exhaustiveness.rs:51:11
107    |
108 LL |     match s {
109    |           ^ pattern `&[false, ..]` not covered
110    |
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
113    |
114 LL ~         [true, ..] => {}
115 LL +         &[false, ..] => todo!()
116    |
117
118 error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered
119   --> $DIR/slice-patterns-exhaustiveness.rs:56:11
120    |
121 LL |     match s {
122    |           ^ pattern `&[false, _, ..]` not covered
123    |
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
126    |
127 LL ~         [true, ..] => {}
128 LL +         &[false, _, ..] => todo!()
129    |
130
131 error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered
132   --> $DIR/slice-patterns-exhaustiveness.rs:62:11
133    |
134 LL |     match s {
135    |           ^ pattern `&[_, .., false]` not covered
136    |
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
139    |
140 LL ~         [.., true] => {}
141 LL +         &[_, .., false] => todo!()
142    |
143
144 error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered
145   --> $DIR/slice-patterns-exhaustiveness.rs:69:11
146    |
147 LL |     match s {
148    |           ^ pattern `&[_, _, .., true]` not covered
149    |
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
152    |
153 LL ~         [.., false] => {}
154 LL +         &[_, _, .., true] => todo!()
155    |
156
157 error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered
158   --> $DIR/slice-patterns-exhaustiveness.rs:76:11
159    |
160 LL |     match s {
161    |           ^ pattern `&[true, _, .., _]` not covered
162    |
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
165    |
166 LL ~         [false, .., false] => {}
167 LL +         &[true, _, .., _] => todo!()
168    |
169
170 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
171   --> $DIR/slice-patterns-exhaustiveness.rs:85:11
172    |
173 LL |     match s {
174    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
175    |
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
178    |
179 LL ~         &[true] => {}
180 LL +         &[] | &[_, _, ..] => todo!()
181    |
182
183 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
184   --> $DIR/slice-patterns-exhaustiveness.rs:89:11
185    |
186 LL |     match s {
187    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
188    |
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
191    |
192 LL ~         CONST => {}
193 LL +         &[] | &[_, _, ..] => todo!()
194    |
195
196 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
197   --> $DIR/slice-patterns-exhaustiveness.rs:93:11
198    |
199 LL |     match s {
200    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
201    |
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
204    |
205 LL ~         &[false] => {}
206 LL +         &[] | &[_, _, ..] => todo!()
207    |
208
209 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
210   --> $DIR/slice-patterns-exhaustiveness.rs:98:11
211    |
212 LL |     match s {
213    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
214    |
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
217    |
218 LL ~         CONST => {}
219 LL +         &[] | &[_, _, ..] => todo!()
220    |
221
222 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
223   --> $DIR/slice-patterns-exhaustiveness.rs:103:11
224    |
225 LL |     match s {
226    |           ^ pattern `&[_, _, ..]` not covered
227    |
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
230    |
231 LL ~         CONST => {}
232 LL +         &[_, _, ..] => todo!()
233    |
234
235 error[E0004]: non-exhaustive patterns: `&[false]` not covered
236   --> $DIR/slice-patterns-exhaustiveness.rs:108:11
237    |
238 LL |     match s {
239    |           ^ pattern `&[false]` not covered
240    |
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
243    |
244 LL ~         &[_, _, ..] => {}
245 LL +         &[false] => todo!()
246    |
247
248 error[E0004]: non-exhaustive patterns: `&[false]` not covered
249   --> $DIR/slice-patterns-exhaustiveness.rs:121:11
250    |
251 LL |     match s1 {
252    |           ^^ pattern `&[false]` not covered
253    |
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
256    |
257 LL ~         CONST1 => {}
258 LL +         &[false] => todo!()
259    |
260
261 error: aborting due to 20 previous errors
262
263 For more information about this error, try `rustc --explain E0004`.