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