Error message for non-fully-qualified method lookup does not contain helpful information related to auto traits. #90664
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-traits
Area: Trait system
A-typesystem
Area: The type system
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
F-auto_traits
`#![feature(auto_traits)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is spun off from #90601.
Given the following code (playground):
The current output is:
By contrast, if you fully qualify the method path, you get an explanation for why the auto trait
Send
does not apply to your type (playground):I don't really have a great plan for how to integrate that extra information into the first error, but here's one proposal:
cc #13231
@rustbot label +A-traits +A-typesystem +D-terse +F-auto_traits
The text was updated successfully, but these errors were encountered: