1 error: expected `}`, found `,`
2 --> $DIR/issue-49257.rs:20:19
4 LL | let Point { .., y, } = p; //~ ERROR expected `}`, found `,`
8 | `..` must be at the end and cannot have a trailing comma
9 help: move the `..` to the end of the field list
11 LL | let Point { y, .. } = p; //~ ERROR expected `}`, found `,`
14 error: expected `}`, found `,`
15 --> $DIR/issue-49257.rs:21:19
17 LL | let Point { .., y } = p; //~ ERROR expected `}`, found `,`
21 | `..` must be at the end and cannot have a trailing comma
22 help: move the `..` to the end of the field list
24 LL | let Point { y , .. } = p; //~ ERROR expected `}`, found `,`
27 error: expected `}`, found `,`
28 --> $DIR/issue-49257.rs:22:19
30 LL | let Point { .., } = p; //~ ERROR expected `}`, found `,`
34 | | help: remove this comma
35 | `..` must be at the end and cannot have a trailing comma
37 error: aborting due to 3 previous errors