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