Incorrect suggestion for method call on ambiguous floating-point literal #90974
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
However, this won't compile, since rustc doesn't accept
3._f32
as a floating-point literal. Thehelp
should add the implied0
for us:See also #51874, a similar issue which was fixed.
The text was updated successfully, but these errors were encountered: