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