fork/rust

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

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

master
828 B26 linesraw
1error: `..` can only be used once per slice pattern
2  --> $DIR/issue-69103-extra-binding-subslice.rs:6:22
3   |
4LL |     let [a @ .., b @ ..] = &mut [1, 2];
5   |              --      ^^ can only be used once per slice pattern
6   |              |
7   |              previously used here
8
9error: `..` can only be used once per slice pattern
10  --> $DIR/issue-69103-extra-binding-subslice.rs:10:18
11   |
12LL |     let [.., c @ ..] = [1, 2];
13   |          --      ^^ can only be used once per slice pattern
14   |          |
15   |          previously used here
16
17error: `..` patterns are not allowed here
18  --> $DIR/issue-69103-extra-binding-subslice.rs:15:18
19   |
20LL |     let (.., d @ ..) = (1, 2);
21   |                  ^^
22   |
23   = note: only allowed in tuple, tuple struct, and slice patterns
24
25error: aborting due to 3 previous errors
26