fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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