2018-08-08 07:28:26 -05:00
|
|
|
error: requires at least a format string argument
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ifmt-bad-format-args.rs:2:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | format_args!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ifmt-bad-format-args.rs:3:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | format_args!(|| {});
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | format_args!("{}", || {});
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|