Invalid suggestion for missing lifetime specifier #75040
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Compilation failure with reasonable diagnosis
Instead, this happened: The compiler suggested adding
<'a>
beforetrait
, which is syntactically invalid.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: