]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/slice-patterns-exhaustiveness.stderr
Auto merge of #76325 - lzutao:split-core-str, r=Amanieu
[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    = 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 `&[bool; 2]`
9
10 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
11   --> $DIR/slice-patterns-exhaustiveness.rs:12:11
12    |
13 LL |     match s3 {
14    |           ^^ pattern `&[false, ..]` 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 `&[bool; 3]`
18
19 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
20   --> $DIR/slice-patterns-exhaustiveness.rs:16:11
21    |
22 LL |     match s10 {
23    |           ^^^ pattern `&[false, ..]` 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 `&[bool; 10]`
27
28 error[E0004]: non-exhaustive patterns: `&[false, true]` not covered
29   --> $DIR/slice-patterns-exhaustiveness.rs:25:11
30    |
31 LL |     match s2 {
32    |           ^^ pattern `&[false, true]` 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 `&[bool; 2]`
36
37 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
38   --> $DIR/slice-patterns-exhaustiveness.rs:30:11
39    |
40 LL |     match s3 {
41    |           ^^ pattern `&[false, .., true]` 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 `&[bool; 3]`
45
46 error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
47   --> $DIR/slice-patterns-exhaustiveness.rs:35:11
48    |
49 LL |     match s {
50    |           ^ pattern `&[false, .., true]` 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 `&[bool]`
54
55 error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
56   --> $DIR/slice-patterns-exhaustiveness.rs:42:11
57    |
58 LL |     match s {
59    |           ^ pattern `&[_, ..]` 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 `&[bool]`
63
64 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
65   --> $DIR/slice-patterns-exhaustiveness.rs:46:11
66    |
67 LL |     match s {
68    |           ^ pattern `&[_, _, ..]` 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 `&[bool]`
72
73 error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
74   --> $DIR/slice-patterns-exhaustiveness.rs:51:11
75    |
76 LL |     match s {
77    |           ^ pattern `&[false, ..]` 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 `&[bool]`
81
82 error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered
83   --> $DIR/slice-patterns-exhaustiveness.rs:56:11
84    |
85 LL |     match s {
86    |           ^ pattern `&[false, _, ..]` 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 `&[bool]`
90
91 error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered
92   --> $DIR/slice-patterns-exhaustiveness.rs:62:11
93    |
94 LL |     match s {
95    |           ^ pattern `&[_, .., false]` 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 `&[bool]`
99
100 error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered
101   --> $DIR/slice-patterns-exhaustiveness.rs:69:11
102    |
103 LL |     match s {
104    |           ^ pattern `&[_, _, .., true]` 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 `&[bool]`
108
109 error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered
110   --> $DIR/slice-patterns-exhaustiveness.rs:76:11
111    |
112 LL |     match s {
113    |           ^ pattern `&[true, _, .., _]` not covered
114    |
115    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
116    = note: the matched value is of type `&[bool]`
117
118 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
119   --> $DIR/slice-patterns-exhaustiveness.rs:85:11
120    |
121 LL |     match s {
122    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
123    |
124    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
125    = note: the matched value is of type `&[bool]`
126
127 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
128   --> $DIR/slice-patterns-exhaustiveness.rs:89:11
129    |
130 LL |     match s {
131    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
132    |
133    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
134    = note: the matched value is of type `&[bool]`
135
136 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
137   --> $DIR/slice-patterns-exhaustiveness.rs:93:11
138    |
139 LL |     match s {
140    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
141    |
142    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
143    = note: the matched value is of type `&[bool]`
144
145 error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
146   --> $DIR/slice-patterns-exhaustiveness.rs:98:11
147    |
148 LL |     match s {
149    |           ^ patterns `&[]` and `&[_, _, ..]` not covered
150    |
151    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
152    = note: the matched value is of type `&[bool]`
153
154 error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
155   --> $DIR/slice-patterns-exhaustiveness.rs:103:11
156    |
157 LL |     match s {
158    |           ^ pattern `&[_, _, ..]` not covered
159    |
160    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
161    = note: the matched value is of type `&[bool]`
162
163 error[E0004]: non-exhaustive patterns: `&[false]` not covered
164   --> $DIR/slice-patterns-exhaustiveness.rs:108:11
165    |
166 LL |     match s {
167    |           ^ pattern `&[false]` not covered
168    |
169    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
170    = note: the matched value is of type `&[bool]`
171
172 error[E0004]: non-exhaustive patterns: `&[false]` not covered
173   --> $DIR/slice-patterns-exhaustiveness.rs:121:11
174    |
175 LL |     match s1 {
176    |           ^^ pattern `&[false]` not covered
177    |
178    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
179    = note: the matched value is of type `&[bool; 1]`
180
181 error: aborting due to 20 previous errors
182
183 For more information about this error, try `rustc --explain E0004`.