Misleading suggestion to add bound to type alias parameter #125789
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.
Code
Current output
Desired output
Rationale and extra context
Restricting
T
as suggested causes a warning about the bound being ignored, including the correct suggestion to write<T as Trait>::Assoc
. If I understand #112792 correctly, type alias bounds will be supported eventually, but right now the suggestion is misleading.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: