fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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