Recover from impl &Trait
and T: &Trait
#106694
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following two function definitions are not valid:
They fail in the parser and it doesn't recover nicely.
It should produce an appropriate error message, closer to the output for
impl &Trait for () {}
:The text was updated successfully, but these errors were encountered: