1 error: `..` can only be used once per slice pattern
2 --> $DIR/slice_destructure_fail.rs:3: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:4:3
12 LL | [a, a, b] = [1, 2];
13 | ^^^^^^^^^ expected 2 elements
15 error[E0527]: pattern requires 1 element but array has 2
16 --> $DIR/slice_destructure_fail.rs:5:3
19 | ^^^ expected 2 elements
21 error: aborting due to 3 previous errors
23 For more information about this error, try `rustc --explain E0527`.