2016-08-17 14:20:04 +00:00
error: requires at least a format string argument
2018-12-25 15:56:47 +00:00
--> $DIR/bad-format-args.rs:2:5
2016-08-17 14:20:04 +00:00
|
2019-03-09 12:03:44 +00:00
LL | format!();
2021-10-14 18:28:28 +00:00
| ^^^^^^^^^
2016-08-17 14:20:04 +00:00
|
2022-06-21 02:25:52 +00:00
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
2016-08-17 14:20:04 +00:00
2020-08-31 09:45:50 +00:00
error: expected `,`, found `1`
2018-12-25 15:56:47 +00:00
--> $DIR/bad-format-args.rs:3:16
2016-08-17 14:20:04 +00:00
|
2019-03-09 12:03:44 +00:00
LL | format!("" 1);
2019-07-17 18:40:36 +00:00
| ^ expected `,`
2016-08-17 14:20:04 +00:00
2019-09-01 22:09:05 +00:00
error: expected one of `,`, `.`, `?`, or an operator, found `1`
2018-12-25 15:56:47 +00:00
--> $DIR/bad-format-args.rs:4:19
2016-08-17 14:20:04 +00:00
|
2019-03-09 12:03:44 +00:00
LL | format!("", 1 1);
2019-10-28 18:08:53 +00:00
| ^ expected one of `,`, `.`, `?`, or an operator
2016-08-17 14:20:04 +00:00
2017-07-02 10:49:30 +00:00
error: aborting due to 3 previous errors
2016-08-17 14:20:04 +00:00