Matthias Krüger 45ca2f732e
Rollup merge of #112029 - jieyouxu:typo-const-in-const-param-def, r=cjgillot
Recover upon mistyped error on typo'd `const` in const param def

And add machine-applicable fix for the typo'd `const` keyword.

### Before

```
error: expected one of `,`, `:`, `=`, or `>`, found `N`
 --> src/lib.rs:1:18
  |
1 | pub fn bar<Const N: u8>() {}
  |                  ^ expected one of `,`, `:`, `=`, or `>`
```

### After This PR

```
error: `const` keyword was mistyped as `Const`
 --> test.rs:1:8
  |
1 | fn bar<Const N: u8>() {}
  |        ^^^^^
  |
help: use the `const` keyword
  |
1 | fn bar<const N: u8>() {}
  |        ~~~~~

```

Fixes #111941.
2023-05-29 04:03:01 +02:00
..
2023-04-30 00:06:26 +08:00
2023-05-12 00:10:52 +00:00
2023-05-05 20:36:21 +02:00
2023-05-08 17:58:01 -03:00
2023-05-08 17:58:01 -03:00
2023-05-04 18:06:07 +00:00
2023-05-12 00:10:52 +00:00
2023-05-11 12:14:57 -07:00
2023-05-08 17:58:01 -03:00
2023-05-25 17:40:46 +00:00
2023-05-24 21:15:50 -03:00
2023-04-30 14:08:26 +00:00
2023-05-08 03:36:30 +00:00
2023-05-12 00:10:52 +00:00
2023-04-29 13:01:46 +01:00
2023-05-25 18:17:02 +00:00
2023-05-02 10:32:08 +00:00
2023-05-05 14:58:52 -07:00
2023-04-29 13:01:46 +01:00
2023-05-08 03:36:30 +00:00
2023-05-19 20:58:06 +02:00
2023-04-26 21:02:56 +02:00
2023-05-08 03:36:30 +00:00
2023-05-01 16:15:17 +08:00
2023-04-29 13:01:46 +01:00
2023-05-16 20:30:48 +00:00
2023-05-12 00:10:52 +00:00