1 error: requires at least a format string argument
2 --> $DIR/format-parse-errors.rs:4:5
7 = note: this error originates in the macro `$crate::__export::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
9 error: expected expression, found keyword `struct`
10 --> $DIR/format-parse-errors.rs:5:13
13 | ^^^^^^ expected expression
15 error: expected expression, found end of macro arguments
16 --> $DIR/format-parse-errors.rs:6:24
18 LL | format!("s", name =);
19 | ^ expected expression
21 error: positional arguments cannot follow named arguments
22 --> $DIR/format-parse-errors.rs:10:9
27 | ^^^ positional arguments must be before named arguments
29 error: expected expression, found keyword `struct`
30 --> $DIR/format-parse-errors.rs:12:30
32 LL | format!("s {foo}", foo = struct);
33 | ^^^^^^ expected expression
35 error: expected expression, found keyword `struct`
36 --> $DIR/format-parse-errors.rs:13:18
38 LL | format!("s", struct);
39 | ^^^^^^ expected expression
41 error: format argument must be a string literal
42 --> $DIR/format-parse-errors.rs:16:13
47 help: you might be missing a string literal to format with
49 LL | format!("{}", 123);
52 error: aborting due to 7 previous errors