fork/rust

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

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

master
1.1 KiB42 linesraw
1error: expected `}`, found `,`
2  --> $DIR/issue-49257.rs:10:19
3   |
4LL |     let Point { .., y, } = p;
5   |                 --^
6   |                 | |
7   |                 | expected `}`
8   |                 `..` must be at the end and cannot have a trailing comma
9   |
10help: move the `..` to the end of the field list
11   |
12LL -     let Point { .., y, } = p;
13LL +     let Point { y, .. } = p;
14   |
15
16error: expected `}`, found `,`
17  --> $DIR/issue-49257.rs:11:19
18   |
19LL |     let Point { .., y } = p;
20   |                 --^
21   |                 | |
22   |                 | expected `}`
23   |                 `..` must be at the end and cannot have a trailing comma
24   |
25help: move the `..` to the end of the field list
26   |
27LL -     let Point { .., y } = p;
28LL +     let Point { y, .. } = p;
29   |
30
31error: expected `}`, found `,`
32  --> $DIR/issue-49257.rs:12:19
33   |
34LL |     let Point { .., } = p;
35   |                 --^
36   |                 | |
37   |                 | expected `}`
38   |                 | help: remove this comma
39   |                 `..` must be at the end and cannot have a trailing comma
40
41error: aborting due to 3 previous errors
42