For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
20 lines
471 B
Plaintext
20 lines
471 B
Plaintext
error: requires at least a format string argument
|
|
--> $DIR/ifmt-bad-format-args.rs:2:5
|
|
|
|
|
LL | format_args!();
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: format argument must be a string literal
|
|
--> $DIR/ifmt-bad-format-args.rs:3:18
|
|
|
|
|
LL | format_args!(|| {});
|
|
| ^^^^^
|
|
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
LL | format_args!("{}", || {});
|
|
| +++++
|
|
|
|
error: aborting due to 2 previous errors
|
|
|