Search in associated items when type cannot be found #73321
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.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
rust/src/test/ui/associated-types/associated-types-eq-1.rs
Lines 4 to 11 in 1fb612b
we currently show
rust/src/test/ui/associated-types/associated-types-eq-1.stderr
Lines 1 to 7 in 1fb612b
But the typo checks should also look at the associated types of all the locally accessible types and provide a reasonable suggestion.
In this specific case of assignment, we could also look at the type of
boo
for an appropriate type to supply.The text was updated successfully, but these errors were encountered: