rust/src/test/ui/if/ifmt-bad-format-args.stderr

19 lines
593 B
Plaintext
Raw Normal View History

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
|
LL | format_args!(); //~ ERROR: requires at least a format string argument
| ^^^^^^^^^^^^^^^
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
|
LL | format_args!(|| {}); //~ ERROR: must be a string literal
| ^^^^^
help: you might be missing a string literal to format with
|
LL | format_args!("{}", || {}); //~ ERROR: must be a string literal
| ^^^^^
error: aborting due to 2 previous errors