Don't use max_slice_length when subtracting from VarLenSlice

This alters error messages slightly, but that'll be improved later
This commit is contained in:
Nadrieril
2019-11-03 23:10:33 +00:00
parent 909ec37028
commit b66973043e
2 changed files with 23 additions and 14 deletions

View File

@@ -6,11 +6,11 @@ LL | match buf {
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 3 more not covered
error[E0004]: non-exhaustive patterns: `&[]` not covered
--> $DIR/match-byte-array-patterns-2.rs:10:11
|
LL | match buf {
| ^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 3 more not covered
| ^^^ pattern `&[]` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms