Recover from impl Trait
in type param bound
#102182
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
D-papercut
Diagnostics: An error or lint that needs small tweaks.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When writing
fn foo<T: impl Trait>() {}
the current error is "expected one of these tokens", without any attempt to recover the parse. It should instead be closer to:The text was updated successfully, but these errors were encountered: