diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-09-29 18:28:39 +0200 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2020-10-18 14:21:20 +0100 |
| commit | bb8111069ed38455d915f7f8f0e050bb3c3720cf (patch) | |
| tree | 77aefa0b4086968fca6c8837cac208c1808331d8 /src/test/ui/pattern | |
| parent | 3b37d941a29d91afbfa06afcb63f702ee7b810d6 (diff) | |
| download | rust-bb8111069ed38455d915f7f8f0e050bb3c3720cf.tar.gz rust-bb8111069ed38455d915f7f8f0e050bb3c3720cf.zip | |
Destructure byte array constants to array patterns instead of keeping them opaque
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr b/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr index ffc8433403f..7968f9713ff 100644 --- a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr +++ b/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.stderr @@ -7,11 +7,11 @@ LL | match buf { = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms = note: the matched value is of type `&[u8; 4]` -error[E0004]: non-exhaustive patterns: `&[]`, `&[_]`, `&[_, _]` and 2 more not covered +error[E0004]: non-exhaustive patterns: `&[0_u8..=64_u8, _, _, _]` and `&[66_u8..=u8::MAX, _, _, _]` not covered --> $DIR/match-byte-array-patterns-2.rs:10:11 | LL | match buf { - | ^^^ patterns `&[]`, `&[_]`, `&[_, _]` and 2 more not covered + | ^^^ patterns `&[0_u8..=64_u8, _, _, _]` and `&[66_u8..=u8::MAX, _, _, _]` not covered | = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms = note: the matched value is of type `&[u8]` |
