diff options
Diffstat (limited to 'src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs')
-rw-r--r-- | src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs b/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs deleted file mode 100644 index 33468d03f..000000000 --- a/src/test/ui/pattern/usefulness/match-byte-array-patterns-2.rs +++ /dev/null @@ -1,13 +0,0 @@ -fn main() { - let buf = &[0, 1, 2, 3]; - - match buf { //~ ERROR non-exhaustive - b"AAAA" => {} - } - - let buf: &[u8] = buf; - - match buf { //~ ERROR non-exhaustive - b"AAAA" => {} - } -} |