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

19 lines
595 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: requires at least a format string argument
--> $DIR/ifmt-bad-format-args.rs:12:5
|
LL | format_args!(); //~ ERROR: requires at least a format string argument
| ^^^^^^^^^^^^^^^
error: format argument must be a string literal
--> $DIR/ifmt-bad-format-args.rs:13:18
|
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