Fixed E0528 label and unit test
This commit is contained in:
parent
147371f58f
commit
7cd4e7ff0b
2 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue