Closed
Description
Code
pub fn bar<Const N: u8>() {}
Current output
error: expected one of `,`, `:`, `=`, or `>`, found `N`
--> src/lib.rs:1:18
|
1 | pub fn bar<Const N: u8>() {}
| ^ expected one of `,`, `:`, `=`, or `>`
Desired output
It should say that the `const` was typo'd as `Const` and should be `Const` preferably with a `help:` thing that shows the diff (and probably should be auto-fixable?)
Rationale and extra context
No response
Other cases
No response
Anything else?
No response