1 error: `..` can only be used once per slice pattern
2 --> $DIR/slice_destructure_fail.rs:5:14
4 LL | [a, .., b, ..] = [0, 1];
5 | -- ^^ can only be used once per slice pattern
9 error[E0527]: pattern requires 3 elements but array has 2
10 --> $DIR/slice_destructure_fail.rs:6:3
12 LL | [a, a, b] = [1, 2];
13 | ^^^^^^^^^ expected 2 elements
15 error: aborting due to 2 previous errors
17 For more information about this error, try `rustc --explain E0527`.