Files
rust/compiler
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-03-11 10:53:47 -06:00
2023-06-03 09:44:30 +08:00
2023-05-02 10:45:16 -07:00
2023-06-05 16:01:09 +02:00
2023-06-03 09:44:30 +08:00
2023-05-26 15:18:54 -04:00
2023-04-10 17:24:23 +09:00
2023-04-10 22:02:52 +02:00
2023-05-26 13:03:47 +03:00
2023-05-26 18:55:02 +01:00