Provide a hint about type parameter conflicting with a structure name #77391
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is something I have seen on users.rust-lang.org: https://users.rust-lang.org/t/implementing-fn-for-a-struct-thats-stored-in-vector/10814
A following code in my opinion should provide a hint to remove
<Hello>
.Currently it provides the following error which is non-ideal:
The text was updated successfully, but these errors were encountered: