]>
Commit | Line | Data |
---|---|---|
ea8adc8c | 1 | error[E0004]: non-exhaustive patterns: `&[]` not covered |
dfeec247 | 2 | --> $DIR/slice.rs:4:11 |
ea8adc8c | 3 | | |
532ac7d7 | 4 | LL | match sl { |
ea8adc8c | 5 | | ^^ pattern `&[]` not covered |
532ac7d7 | 6 | | |
ba9703b0 | 7 | = note: the matched value is of type `&[u8]` |
ee023bcb FG |
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 ~ [first, remainder @ ..] => {} | |
11 | LL ~ &[] => todo!(), | |
12 | | | |
ea8adc8c XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
0531ce1d | 16 | For more information about this error, try `rustc --explain E0004`. |