]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-49257.stderr
Rollup merge of #107446 - clubby789:rustc-parse-diag-migrate, r=compiler-errors
[rust.git] / tests / ui / parser / issue-49257.stderr
1 error: expected `}`, found `,`
2   --> $DIR/issue-49257.rs:10:19
3    |
4 LL |     let Point { .., y, } = p;
5    |                 --^
6    |                 | |
7    |                 | expected `}`
8    |                 `..` must be at the end and cannot have a trailing comma
9    |
10 help: move the `..` to the end of the field list
11    |
12 LL -     let Point { .., y, } = p;
13 LL +     let Point { y, .. } = p;
14    |
15
16 error: expected `}`, found `,`
17   --> $DIR/issue-49257.rs:11:19
18    |
19 LL |     let Point { .., y } = p;
20    |                 --^
21    |                 | |
22    |                 | expected `}`
23    |                 `..` must be at the end and cannot have a trailing comma
24    |
25 help: move the `..` to the end of the field list
26    |
27 LL -     let Point { .., y } = p;
28 LL +     let Point { y , .. } = p;
29    |
30
31 error: expected `}`, found `,`
32   --> $DIR/issue-49257.rs:12:19
33    |
34 LL |     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
41 error: aborting due to 3 previous errors
42