-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
eprintln!("Timings:\n{:?timer}");
The current suggestion is:
error: invalid format string: expected `'}'`, found `'t'`
--> src/main.rs:696:29
|
696 | eprintln!("Timings:\n{:?timer}");
| - ^ expected `}` in format string
| |
| because of this opening brace
|
= note: if you intended to print `{`, you can escape it using `{{`
error: could not compile `icemaker` due to previous error
We could perhaps detect the formatting parameter is at the beginning of the fmt string and that it should go at the end, in order to suggest {timer:?}
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.