-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
This program:
fn main() {
println!("{:f.6}", 100.0);
}
...has this output:
ac.rs:2:13: 2:21 error: unterminated format string
ac.rs:2 println!("{:f.6}", 100.0);
^~~~~~~~
error: aborting due to previous error
"unterminated" makes it sound as though the user hasn't used a closing quotation mark. Even if it's not possible to give a good error message here, a message like "unknown format specifier" would be more insightful.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints