1 The number of elements in an array or slice pattern differed from the number of
2 elements in the array being matched.
4 Example of erroneous code:
9 &[a, b] => { // error: pattern requires 2 elements but array
11 println!("a={}, b={}", a, b);
16 Ensure that the pattern is consistent with the size of the matched
17 array. Additional elements can be matched with `..`:
20 let r = &[1, 2, 3, 4];
22 &[a, b, ..] => { // ok!
23 println!("a={}, b={}", a, b);