Suggest a float literal when dividing a floating-point type by {integer}
#93829
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.
(This example is from https://users.rust-lang.org/t/beginner-question-make-a-function-that-divides-a-number-by-100/71577?u=scottmcm )
Given the following code: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=94518a0a52515b56b171089af22d07d9
The current output is:
Ideally the output should have a suggested fix, perhaps something like
The text was updated successfully, but these errors were encountered: