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:
parent
0f677c65e8
commit
09f9947ebc
55 changed files with 6 additions and 3 deletions
|
@ -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" => {}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue