You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0004]: non-exhaustive patterns: `&[_, ..]` not covered
2
+
--> $DIR/slice_of_empty.rs:9:11
3
+
|
4
+
LL | match nevers {
5
+
| ^^^^^^ pattern `&[_, ..]` not covered
6
+
|
7
+
= note: the matched value is of type `&[!]`
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 ~ &[] => (),
11
+
LL ~ &[_, ..] => todo!(),
12
+
|
13
+
14
+
error[E0004]: non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered
15
+
--> $DIR/slice_of_empty.rs:20:11
16
+
|
17
+
LL | match nevers {
18
+
| ^^^^^^ patterns `&[]` and `&[_, _, ..]` not covered
19
+
|
20
+
= note: the matched value is of type `&[!]`
21
+
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
22
+
|
23
+
LL ~ &[_] => (),
24
+
LL ~ &[] | &[_, _, ..] => todo!(),
25
+
|
26
+
27
+
error: aborting due to 2 previous errors
28
+
29
+
For more information about this error, try `rustc --explain E0004`.
0 commit comments