fork/rust

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

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

1.41.0
652 B22 linesraw
1error: requires at least a format string argument
2  --> $DIR/bad-format-args.rs:2:5
3   |
4LL |     format!();
5   |     ^^^^^^^^^^
6   |
7   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
8
9error: expected token: `,`
10  --> $DIR/bad-format-args.rs:3:16
11   |
12LL |     format!("" 1);
13   |                ^ expected `,`
14
15error: expected one of `,`, `.`, `?`, or an operator, found `1`
16  --> $DIR/bad-format-args.rs:4:19
17   |
18LL |     format!("", 1 1);
19   |                   ^ expected one of `,`, `.`, `?`, or an operator
20
21error: aborting due to 3 previous errors
22