Provide a structured suggestion for _
-as-parameter-type in trait impl
s
#95097
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=91ba3d382d71310c4e6239fc5d4da92f
The current output is:
That's a particularly-bad
help
in a trait impl, since the associated function is not generic, and thus adding a generic parameter definitely won't work.Ideally the output should look like:
So that, like happens with
-> _
, I can just accept the structured suggestion instead of needing to type out the long type again.The text was updated successfully, but these errors were encountered: