Fixed E0528 label and unit test

This commit is contained in:
Eugene R Gonzalez 2016-09-01 18:46:30 -04:00
parent 147371f58f
commit 7cd4e7ff0b
2 changed files with 9 additions and 4 deletions

View file

@ -13,7 +13,9 @@
fn main() {
let r = &[1, 2];
match r {
&[a, b, c, rest..] => { //~ ERROR E0528
&[a, b, c, rest..] => {
//~^ ERROR E0528
//~| NOTE pattern cannot match array of 2 elements
}
}
}