rust/tests/ui/parser/issue-49257.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Plaintext
Raw Normal View History

error: expected `}`, found `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-49257.rs:10:19
|
2019-03-09 06:03:44 -06:00
LL | let Point { .., y, } = p;
| --^
| | |
| | expected `}`
| `..` must be at the end and cannot have a trailing comma
|
help: move the `..` to the end of the field list
|
LL - let Point { .., y, } = p;
LL + let Point { y, .. } = p;
2022-06-08 12:34:57 -05:00
|
error: expected `}`, found `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-49257.rs:11:19
|
2019-03-09 06:03:44 -06:00
LL | let Point { .., y } = p;
| --^
| | |
| | expected `}`
| `..` must be at the end and cannot have a trailing comma
|
help: move the `..` to the end of the field list
|
LL - let Point { .., y } = p;
LL + let Point { y , .. } = p;
2022-06-08 12:34:57 -05:00
|
error: expected `}`, found `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-49257.rs:12:19
|
2019-03-09 06:03:44 -06:00
LL | let Point { .., } = p;
| --^
| | |
| | expected `}`
| | help: remove this comma
| `..` must be at the end and cannot have a trailing comma
error: aborting due to 3 previous errors