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