about summary refs log tree commit diff
path: root/src/test/ui/expr/if/ifmt-bad-format-args.stderr
blob: 8bb0d40629f0a35f4ba619bc14cfb9787cb1c73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: requires at least a format string argument
  --> $DIR/ifmt-bad-format-args.rs:2:5
   |
LL |     format_args!();
   |     ^^^^^^^^^^^^^^^
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: format argument must be a string literal
  --> $DIR/ifmt-bad-format-args.rs:3:18
   |
LL |     format_args!(|| {});
   |                  ^^^^^
   |
help: you might be missing a string literal to format with
   |
LL |     format_args!("{}", || {});
   |                  ^^^^^

error: aborting due to 2 previous errors