fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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