Addition to E0582 explanation #124744
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
No response
Rationale and extra context
Problem
This error message could be more helpful.
'a
appears in the parameter for the associated type, there is no guarantee that animpl
for the associated type actually uses the parameter, therefore'a
is not guaranteed to be used in the input for anyimpl Foo
Suggestion
X::Assoc<'a>
(requires time to implementrustc --explain E0582
to include this example.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: