fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.9 KiB131 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   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8
9error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
10  --> $DIR/slice-patterns-exhaustiveness.rs:12:11
11   |
12LL |     match s3 {
13   |           ^^ pattern `&[false, ..]` not covered
14   |
15   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
16
17error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
18  --> $DIR/slice-patterns-exhaustiveness.rs:16:11
19   |
20LL |     match s10 {
21   |           ^^^ pattern `&[false, ..]` not covered
22   |
23   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
24
25error[E0004]: non-exhaustive patterns: `&[false, true]` not covered
26  --> $DIR/slice-patterns-exhaustiveness.rs:25:11
27   |
28LL |     match s2 {
29   |           ^^ pattern `&[false, true]` not covered
30   |
31   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
32
33error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
34  --> $DIR/slice-patterns-exhaustiveness.rs:30:11
35   |
36LL |     match s3 {
37   |           ^^ pattern `&[false, .., true]` not covered
38   |
39   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
40
41error[E0004]: non-exhaustive patterns: `&[false, .., true]` not covered
42  --> $DIR/slice-patterns-exhaustiveness.rs:35:11
43   |
44LL |     match s {
45   |           ^ pattern `&[false, .., true]` not covered
46   |
47   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
48
49error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
50  --> $DIR/slice-patterns-exhaustiveness.rs:42:11
51   |
52LL |     match s {
53   |           ^ pattern `&[_, ..]` not covered
54   |
55   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
56
57error[E0004]: non-exhaustive patterns: `&[_, _, ..]` not covered
58  --> $DIR/slice-patterns-exhaustiveness.rs:46:11
59   |
60LL |     match s {
61   |           ^ pattern `&[_, _, ..]` not covered
62   |
63   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
64
65error[E0004]: non-exhaustive patterns: `&[false, ..]` not covered
66  --> $DIR/slice-patterns-exhaustiveness.rs:51:11
67   |
68LL |     match s {
69   |           ^ pattern `&[false, ..]` not covered
70   |
71   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
72
73error[E0004]: non-exhaustive patterns: `&[false, _, ..]` not covered
74  --> $DIR/slice-patterns-exhaustiveness.rs:56:11
75   |
76LL |     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
81error[E0004]: non-exhaustive patterns: `&[_, .., false]` not covered
82  --> $DIR/slice-patterns-exhaustiveness.rs:62:11
83   |
84LL |     match s {
85   |           ^ pattern `&[_, .., false]` not covered
86   |
87   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
88
89error[E0004]: non-exhaustive patterns: `&[_, _, .., true]` not covered
90  --> $DIR/slice-patterns-exhaustiveness.rs:69:11
91   |
92LL |     match s {
93   |           ^ pattern `&[_, _, .., true]` not covered
94   |
95   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
96
97error[E0004]: non-exhaustive patterns: `&[true, _, .., _]` not covered
98  --> $DIR/slice-patterns-exhaustiveness.rs:76:11
99   |
100LL |     match s {
101   |           ^ pattern `&[true, _, .., _]` not covered
102   |
103   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
104
105error[E0004]: non-exhaustive patterns: `&[..]` not covered
106  --> $DIR/slice-patterns-exhaustiveness.rs:85:11
107   |
108LL |     match s {
109   |           ^ pattern `&[..]` not covered
110   |
111   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
112
113error[E0004]: non-exhaustive patterns: `&[true]` not covered
114  --> $DIR/slice-patterns-exhaustiveness.rs:89:11
115   |
116LL |     match s {
117   |           ^ pattern `&[true]` not covered
118   |
119   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120
121error[E0004]: non-exhaustive patterns: `&[false]` not covered
122  --> $DIR/slice-patterns-exhaustiveness.rs:97:11
123   |
124LL |     match s1 {
125   |           ^^ pattern `&[false]` not covered
126   |
127   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
128
129error: aborting due to 16 previous errors
130
131For more information about this error, try `rustc --explain E0004`.