]> git.proxmox.com Git - rustc.git/blame - src/test/ui/if/ifmt-bad-format-args.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / if / ifmt-bad-format-args.stderr
CommitLineData
b7449926 1error: requires at least a format string argument
0731742a 2 --> $DIR/ifmt-bad-format-args.rs:2:5
b7449926 3 |
532ac7d7 4LL | format_args!();
b7449926
XL
5 | ^^^^^^^^^^^^^^^
6
7error: format argument must be a string literal
0731742a 8 --> $DIR/ifmt-bad-format-args.rs:3:18
b7449926 9 |
532ac7d7 10LL | format_args!(|| {});
b7449926 11 | ^^^^^
e74abb32 12 |
b7449926
XL
13help: you might be missing a string literal to format with
14 |
532ac7d7 15LL | format_args!("{}", || {});
b7449926
XL
16 | ^^^^^
17
18error: aborting due to 2 previous errors
19