Matthias Krüger
71a72ee34a
Rollup merge of #112199 - jieyouxu:issue-112188, r=compiler-errors
...
Fix suggestion for matching struct with `..` on both ends
### Before This PR
```
error: expected `}`, found `,`
--> src\main.rs:8:17
|
8 | Foo { .., x, .. } => (),
| --^
| | |
| | expected `}`
| `..` must be at the end and cannot have a trailing comma
|
help: move the `..` to the end of the field list
|
8 - Foo { .., x, .. } => (),
8 + Foo { .., x, , .. } => (),
|
```
### After This PR
```
error: expected `}`, found `,`
--> tests/ui/parser/issue-112188.rs:11:17
|
11 | let Foo { .., x, .. } = f; //~ ERROR expected `}`, found `,`
| --^-
| | |
| | expected `}`
| `..` must be at the end and cannot have a trailing comma
| help: remove the starting `..`
```
Fixes #112188 .
2023-06-06 12:00:33 +02:00
..
2023-05-08 03:36:30 +00:00
2023-05-05 22:40:04 +12:00
2023-05-24 01:17:38 +02:00
2023-05-03 19:41:15 +00:00
2023-05-12 00:10:52 +00:00
2023-06-04 10:56:00 +02:00
2023-05-29 22:33:46 +03:00
2023-06-02 19:22:25 +00:00
2023-06-06 12:00:33 +02:00
2023-05-18 17:37:08 +05:30
2023-05-31 17:45:45 +00:00
2023-05-06 18:40:47 +02:00
2023-05-12 00:10:52 +00:00
2023-05-29 18:37:53 +02:00
2023-05-24 19:35:59 -03:00
2023-05-30 12:40:35 +02:00
2023-05-30 13:03:40 +02:00
2023-06-02 07:57:21 +00:00
2023-06-01 14:45:18 +00:00
2023-06-02 07:57:21 +00:00
2023-05-12 00:10:52 +00:00
2023-05-08 17:58:01 -03:00
2023-05-05 01:22:17 -05:00
2023-05-26 06:55:06 +10:00
2023-05-12 00:10:52 +00:00
2023-05-05 22:40:05 +12:00
2023-05-21 14:16:41 +02:00
2023-05-04 18:06:07 +00:00
2023-05-12 00:10:52 +00:00
2023-05-31 17:45:45 +00:00
2023-05-26 13:15:15 -04:00
2023-05-09 20:49:32 +02:00
2023-05-29 12:07:41 -03:00
2023-05-18 01:47:55 +00:00
2023-05-21 14:16:41 +02:00
2023-05-11 21:41:07 +01:00
2023-05-24 19:35:59 -03:00
2023-05-05 13:02:43 -07:00
2023-05-13 21:34:05 +00:00
2023-05-11 12:14:57 -07:00
2023-05-08 17:58:01 -03:00
2023-05-24 19:35:59 -03:00
2023-05-21 14:16:41 +02:00
2023-05-16 11:39:38 +02:00
2023-05-30 13:04:25 +02:00
2023-05-21 13:37:32 +02:00
2023-06-01 11:09:43 +05:30
2023-06-05 21:20:51 +00:00
2023-05-27 18:49:07 +08:00
2023-05-09 20:49:31 +02:00
2023-06-01 02:28:31 +08:00
2023-05-03 20:09:10 +03:00
2023-05-16 18:50:26 +02:00
2023-06-05 19:40:30 +00:00
2023-05-15 21:16:35 +03:00
2023-05-13 21:34:05 +00:00
2023-05-05 16:05:04 -07:00
2023-05-21 17:48:36 -07:00
2023-05-29 19:58:11 +03:00
2023-06-05 14:25:00 +00:00
2023-05-25 17:40:46 +00:00
2023-05-31 16:51:25 +00:00
2023-05-24 21:15:50 -03:00
2023-05-31 14:02:57 +00:00
2023-05-26 13:15:15 -04:00
2023-06-04 20:49:30 +08:00
2023-06-05 08:34:06 +00:00
2023-05-08 03:36:30 +00:00
2023-05-05 18:54:06 +01:00
2023-05-24 19:16:07 +00:00
2023-06-05 19:40:30 +00:00
2023-05-03 20:09:10 +03:00
2023-06-01 14:45:18 +00:00
2023-05-12 00:10:52 +00:00
2023-06-02 01:33:09 +00:00
2023-05-21 14:16:41 +02:00
2023-05-27 16:35:16 +02:00
2023-06-03 15:02:13 +08:00
2023-05-31 14:02:57 +00:00
2023-05-21 13:37:32 +02:00
2023-05-26 06:23:03 +00:00
2023-05-27 00:18:28 +02:00
2023-05-08 03:42:21 +00:00
2023-05-09 20:49:31 +02:00
2023-05-24 19:54:13 -03:00
2023-05-21 13:37:32 +02:00
2023-05-27 18:49:07 +08:00
2023-06-05 16:09:46 +00:00
2023-05-21 13:37:32 +02:00
2023-06-01 23:22:54 +00:00
2023-05-23 03:23:52 +00:00
2023-05-05 14:58:52 -07:00
2023-05-09 12:33:45 +05:30
2023-05-09 12:33:46 +05:30
2023-06-01 14:45:18 +00:00
2023-05-08 03:36:30 +00:00
2023-05-29 12:07:41 -03:00
2023-05-31 13:47:36 +00:00
2023-06-01 18:21:42 +00:00
2023-05-24 11:18:20 -05:00
2023-05-26 18:55:02 +01:00
2023-05-26 12:16:30 -05:00
2023-06-02 22:07:57 +00:00
2023-05-21 14:16:41 +02:00
2023-05-16 11:39:39 +02:00
2023-06-01 11:09:43 +05:30
2023-06-03 20:38:12 +02:00
2023-05-26 16:01:29 +01:00
2023-05-18 09:29:48 +08:00
2023-05-24 19:16:07 +00:00
2023-05-03 20:09:10 +03:00
2023-05-18 01:53:01 +00:00
2023-05-23 12:46:25 -04:00
2023-05-16 20:30:48 +00:00
2023-05-12 00:10:52 +00:00
2023-05-24 19:35:59 -03:00
2023-05-09 20:35:39 -04:00
2023-05-09 20:35:39 -04:00
2023-05-27 16:35:16 +02:00
2023-05-21 13:37:32 +02:00
2023-05-09 20:35:39 -04:00
2023-05-21 14:16:41 +02:00
2023-05-21 14:16:41 +02:00
2023-05-10 19:36:02 +02:00
2023-05-04 15:39:21 +02:00
2023-05-03 20:09:10 +03:00
2023-05-15 21:22:13 +01:00