]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: requires at least a format string argument |
0731742a | 2 | --> $DIR/ifmt-bad-format-args.rs:2:5 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | format_args!(); |
b7449926 XL |
5 | | ^^^^^^^^^^^^^^^ |
6 | ||
7 | error: format argument must be a string literal | |
0731742a | 8 | --> $DIR/ifmt-bad-format-args.rs:3:18 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | format_args!(|| {}); |
b7449926 | 11 | | ^^^^^ |
e74abb32 | 12 | | |
b7449926 XL |
13 | help: you might be missing a string literal to format with |
14 | | | |
532ac7d7 | 15 | LL | format_args!("{}", || {}); |
b7449926 XL |
16 | | ^^^^^ |
17 | ||
18 | error: aborting due to 2 previous errors | |
19 |