]> git.lizzy.rs Git - rust.git/blob - src/test/ui/if/ifmt-bad-format-args.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / if / ifmt-bad-format-args.stderr
1 error: requires at least a format string argument
2   --> $DIR/ifmt-bad-format-args.rs:2:5
3    |
4 LL |     format_args!(); //~ ERROR: requires at least a format string argument
5    |     ^^^^^^^^^^^^^^^
6
7 error: format argument must be a string literal
8   --> $DIR/ifmt-bad-format-args.rs:3:18
9    |
10 LL |     format_args!(|| {}); //~ ERROR: must be a string literal
11    |                  ^^^^^
12 help: you might be missing a string literal to format with
13    |
14 LL |     format_args!("{}", || {}); //~ ERROR: must be a string literal
15    |                  ^^^^^
16
17 error: aborting due to 2 previous errors
18