fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
599 B21 linesraw
1error: requires at least a format string argument
2  --> $DIR/ifmt-bad-format-args.rs:2:5
3   |
4LL |     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
9error: format argument must be a string literal
10  --> $DIR/ifmt-bad-format-args.rs:3:18
11   |
12LL |     format_args!(|| {});
13   |                  ^^^^^
14   |
15help: you might be missing a string literal to format with
16   |
17LL |     format_args!("{}", || {});
18   |                  +++++
19
20error: aborting due to 2 previous errors
21