Error message doesn't give full path in suggestion. #83513
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.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d854c189b0a198c091da3ccf429e0ec9
It suggests adding
Sum
to the bounds, butSum
is not in scope, so typing directly what it says just leads to another error.Interestingly, Mul was suggested as std::ops::Mul.
So it should likely suggest the correct prefix for the Sum trait.
The text was updated successfully, but these errors were encountered: