E0311 for impl Trait
parameter type suggests invalid syntax
#105544
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
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.
Given the following code:
The current output is:
Not only the suggested syntax is invalid, it also suggests introducing a fresh lifetime parameter instead of naming the elided one on
p
.Ping @estebank.
@rustbot modify labels: +A-suggestion-diagnostics +D-invalid-suggestion
The text was updated successfully, but these errors were encountered: