- Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
error: 2 positional arguments in format string, but no arguments were given --> src/main.rs:2:14 | 2 | format!("{:.0$}"); | ^^---^ | | | this precision flag adds an extra required argument at position 0, which is why there are 2 arguments expected |
It says there are two arguments expected, but that's not true. This only needs one argument.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.