]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/ifmt-bad-format-args.stderr
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / fmt / 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!();
5    |     ^^^^^^^^^^^^^^
6    |
7    = note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9 error: format argument must be a string literal
10   --> $DIR/ifmt-bad-format-args.rs:3:18
11    |
12 LL |     format_args!(|| {});
13    |                  ^^^^^
14    |
15 help: you might be missing a string literal to format with
16    |
17 LL |     format_args!("{}", || {});
18    |                  +++++
19
20 error: aborting due to 2 previous errors
21