fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
584 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 a macro (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