Gather together usefulness tests

I took most tests that were testing only for match exhaustiveness,
pattern refutability or match arm reachability, and put them in
the same test folder.
This commit is contained in:
Nadrieril 2019-09-28 16:05:38 +02:00
parent 0f677c65e8
commit 09f9947ebc
55 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,13 @@
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" => {}
}
}