Skip to content

Error message doesn't give full path in suggestion. #83513

Closed
@Lokathor

Description

@Lokathor

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d854c189b0a198c091da3ccf429e0ec9

It suggests adding Sum to the bounds, but Sum 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.

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`C-enhancementCategory: An issue proposing an enhancement or a PR with one.D-papercutDiagnostics: An error or lint that needs small tweaks.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions