fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
614 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 (in Nightly builds, run with -Z 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