]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: requires at least a format string argument |
0731742a | 2 | --> $DIR/ifmt-bad-format-args.rs:2:5 |
b7449926 XL |
3 | | |
4 | LL | format_args!(); //~ ERROR: requires at least a format string argument | |
5 | | ^^^^^^^^^^^^^^^ | |
6 | ||
7 | error: format argument must be a string literal | |
0731742a | 8 | --> $DIR/ifmt-bad-format-args.rs:3:18 |
b7449926 XL |
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 |