2016-08-17 07:20:04 -07:00
error: requires at least a format string argument
2018-12-25 08:56:47 -07:00
--> $DIR/bad-format-args.rs:2:5
2016-08-17 07:20:04 -07:00
|
2019-03-09 15:03:44 +03:00
LL | format!();
2021-10-14 13:28:28 -05:00
| ^^^^^^^^^
2016-08-17 07:20:04 -07:00
|
2022-06-20 19:25:52 -07: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 07:20:04 -07:00
2020-08-31 11:45:50 +02:00
error: expected `,`, found `1`
2018-12-25 08:56:47 -07:00
--> $DIR/bad-format-args.rs:3:16
2016-08-17 07:20:04 -07:00
|
2019-03-09 15:03:44 +03:00
LL | format!("" 1);
2019-07-17 11:40:36 -07:00
| ^ expected `,`
2016-08-17 07:20:04 -07:00
2019-09-01 15:09:05 -07:00
error: expected one of `,`, `.`, `?`, or an operator, found `1`
2018-12-25 08:56:47 -07:00
--> $DIR/bad-format-args.rs:4:19
2016-08-17 07:20:04 -07:00
|
2019-03-09 15:03:44 +03:00
LL | format!("", 1 1);
2019-10-28 11:08:53 -07:00
| ^ expected one of `,`, `.`, `?`, or an operator
2016-08-17 07:20:04 -07:00
2017-07-02 13:49:30 +03:00
error: aborting due to 3 previous errors
2016-08-17 07:20:04 -07:00