fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
9.4 KiB263 linesraw
1error[E0004]: non-exhaustive patterns: `&[false, _]` not covered
2  --> $DIR/slice-patterns-exhaustiveness.rs:8:11
3   |
4LL |     match s2 {
5   |           ^^ pattern `&[false, _]` not covered
6   |
7   = note: the matched value is of type `&[bool; 2]`
8help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
9   |
10LL ~         [true, .., true] => {},
11LL +         &[false, _] => todo!()
12   |
13
14error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
15  --> $DIR/slice-patterns-exhaustiveness.rs:12:11
16   |
17LL |     match s3 {
18   |           ^^ pattern `&[false, ..]` not covered
19   |
20   = note: the matched value is of type `&[bool; 3]`
21help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
22   |
23LL ~         [true, .., true] => {},
24LL +         &[false, ..] => todo!()
25   |
26
27error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
28  --> $DIR/slice-patterns-exhaustiveness.rs:16:11
29   |
30LL |     match s10 {
31   |           ^^^ pattern `&[false, ..]` not covered
32   |
33   = note: the matched value is of type `&[bool; 10]`
34help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35   |
36LL ~         [true, .., true] => {},
37LL +         &[false, ..] => todo!()
38   |
39
40error[E0004]: non-exhaustive patterns: `&[false, true]` not covered
41  --> $DIR/slice-patterns-exhaustiveness.rs:25:11
42   |
43LL |     match s2 {
44   |           ^^ pattern `&[false, true]` not covered
45   |
46   = note: the matched value is of type `&[bool; 2]`
47help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
48   |
49LL ~         [.., false] => {},
50LL +         &[false, true] => todo!()
51   |
52
53error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
54  --> $DIR/slice-patterns-exhaustiveness.rs:30:11
55   |
56LL |     match s3 {
57   |           ^^ pattern `&[false, .., true]` not covered
58   |
59   = note: the matched value is of type `&[bool; 3]`
60help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
61   |
62LL ~         [.., false] => {},
63LL +         &[false, .., true] => todo!()
64   |
65
66error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
67  --> $DIR/slice-patterns-exhaustiveness.rs:35:11
68   |
69LL |     match s {
70   |           ^ pattern `&[false, .., true]` not covered
71   |
72   = note: the matched value is of type `&[bool]`
73help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
74   |
75LL ~         [.., false] => {},
76LL +         &[false, .., true] => todo!()
77   |
78
79error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
80  --> $DIR/slice-patterns-exhaustiveness.rs:42:11
81   |
82LL |     match s {
83   |           ^ pattern `&[_, ..]` not covered
84   |
85   = note: the matched value is of type `&[bool]`
86help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
87   |
88LL ~         [] => {},
89LL +         &[_, ..] => todo!()
90   |
91
92error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
93  --> $DIR/slice-patterns-exhaustiveness.rs:46:11
94   |
95LL |     match s {
96   |           ^ pattern `&[_, _, ..]` not covered
97   |
98   = note: the matched value is of type `&[bool]`
99help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
100   |
101LL ~         [_] => {},
102LL +         &[_, _, ..] => todo!()
103   |
104
105error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
106  --> $DIR/slice-patterns-exhaustiveness.rs:51:11
107   |
108LL |     match s {
109   |           ^ pattern `&[false, ..]` not covered
110   |
111   = note: the matched value is of type `&[bool]`
112help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
113   |
114LL ~         [true, ..] => {},
115LL +         &[false, ..] => todo!()
116   |
117
118error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered
119  --> $DIR/slice-patterns-exhaustiveness.rs:56:11
120   |
121LL |     match s {
122   |           ^ pattern `&[false, _, ..]` not covered
123   |
124   = note: the matched value is of type `&[bool]`
125help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
126   |
127LL ~         [true, ..] => {},
128LL +         &[false, _, ..] => todo!()
129   |
130
131error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered
132  --> $DIR/slice-patterns-exhaustiveness.rs:62:11
133   |
134LL |     match s {
135   |           ^ pattern `&[_, .., false]` not covered
136   |
137   = note: the matched value is of type `&[bool]`
138help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
139   |
140LL ~         [.., true] => {},
141LL +         &[_, .., false] => todo!()
142   |
143
144error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered
145  --> $DIR/slice-patterns-exhaustiveness.rs:69:11
146   |
147LL |     match s {
148   |           ^ pattern `&[_, _, .., true]` not covered
149   |
150   = note: the matched value is of type `&[bool]`
151help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
152   |
153LL ~         [.., false] => {},
154LL +         &[_, _, .., true] => todo!()
155   |
156
157error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered
158  --> $DIR/slice-patterns-exhaustiveness.rs:76:11
159   |
160LL |     match s {
161   |           ^ pattern `&[true, _, .., _]` not covered
162   |
163   = note: the matched value is of type `&[bool]`
164help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
165   |
166LL ~         [false, .., false] => {},
167LL +         &[true, _, .., _] => todo!()
168   |
169
170error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
171  --> $DIR/slice-patterns-exhaustiveness.rs:85:11
172   |
173LL |     match s {
174   |           ^ patterns `&[]` and `&[_, _, ..]` not covered
175   |
176   = note: the matched value is of type `&[bool]`
177help: 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   |
179LL ~         &[true] => {},
180LL +         &[] | &[_, _, ..] => todo!()
181   |
182
183error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
184  --> $DIR/slice-patterns-exhaustiveness.rs:89:11
185   |
186LL |     match s {
187   |           ^ patterns `&[]` and `&[_, _, ..]` not covered
188   |
189   = note: the matched value is of type `&[bool]`
190help: 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   |
192LL ~         CONST => {},
193LL +         &[] | &[_, _, ..] => todo!()
194   |
195
196error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
197  --> $DIR/slice-patterns-exhaustiveness.rs:93:11
198   |
199LL |     match s {
200   |           ^ patterns `&[]` and `&[_, _, ..]` not covered
201   |
202   = note: the matched value is of type `&[bool]`
203help: 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   |
205LL ~         &[false] => {},
206LL +         &[] | &[_, _, ..] => todo!()
207   |
208
209error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
210  --> $DIR/slice-patterns-exhaustiveness.rs:98:11
211   |
212LL |     match s {
213   |           ^ patterns `&[]` and `&[_, _, ..]` not covered
214   |
215   = note: the matched value is of type `&[bool]`
216help: 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   |
218LL ~         CONST => {},
219LL +         &[] | &[_, _, ..] => todo!()
220   |
221
222error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
223  --> $DIR/slice-patterns-exhaustiveness.rs:103:11
224   |
225LL |     match s {
226   |           ^ pattern `&[_, _, ..]` not covered
227   |
228   = note: the matched value is of type `&[bool]`
229help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
230   |
231LL ~         CONST => {},
232LL +         &[_, _, ..] => todo!()
233   |
234
235error[E0004]: non-exhaustive patterns: `&[false]` not covered
236  --> $DIR/slice-patterns-exhaustiveness.rs:108:11
237   |
238LL |     match s {
239   |           ^ pattern `&[false]` not covered
240   |
241   = note: the matched value is of type `&[bool]`
242help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
243   |
244LL ~         &[_, _, ..] => {},
245LL +         &[false] => todo!()
246   |
247
248error[E0004]: non-exhaustive patterns: `&[false]` not covered
249  --> $DIR/slice-patterns-exhaustiveness.rs:121:11
250   |
251LL |     match s1 {
252   |           ^^ pattern `&[false]` not covered
253   |
254   = note: the matched value is of type `&[bool; 1]`
255help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
256   |
257LL ~         CONST1 => {},
258LL +         &[false] => todo!()
259   |
260
261error: aborting due to 20 previous errors
262
263For more information about this error, try `rustc --explain E0004`.