Incorrect error message, “can't call method on ambiguous numeric type {integer}
”
#72498
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.
Uncomment the
use
and it compiles, QED.(Playground)
Errors:
After following the compiler’s hint, we get:
(Playground)
Errors:
So, I suppose, at least 2 steps do currently lead to a compiling program.
@rustbot modify labels: T-compiler, A-diagnostics, D-incorrect, C-bug.
The text was updated successfully, but these errors were encountered: