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