fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
689 B23 linesraw
1error: `..` can only be used once per slice pattern
2  --> $DIR/slice_destructure_fail.rs:3:16
3   |
4LL |     [a, .., b, ..] = [0, 1];
5   |         --     ^^ can only be used once per slice pattern
6   |         |
7   |         previously used here
8
9error[E0527]: pattern requires 3 elements but array has 2
10  --> $DIR/slice_destructure_fail.rs:4:5
11   |
12LL |     [a, a, b] = [1, 2];
13   |     ^^^^^^^^^ expected 2 elements
14
15error[E0527]: pattern requires 1 element but array has 2
16  --> $DIR/slice_destructure_fail.rs:6:5
17   |
18LL |     [_] = [1, 2];
19   |     ^^^ expected 2 elements
20
21error: aborting due to 3 previous errors
22
23For more information about this error, try `rustc --explain E0527`.