Files
rust/tests/ui/fmt/ifmt-bad-format-args.stderr
Esteban Küber f0b8e13b59 Do not suggest using -Zmacro-backtrace for builtin macros
For macros that are implemented on the compiler, we do *not* mention the `-Zmacro-backtrace` flag. This includes `derive`s and standard macros.
2025-03-14 19:50:03 +00:00

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