@@ -18,20 +18,26 @@ error: expected expression, found `<eof>`
1818LL | format!("s", name =); //~ ERROR expected expression
1919 | ^ expected expression
2020
21+ error: expected `=`, found `<eof>`
22+ --> $DIR/format-parse-errors.rs:5:29
23+ |
24+ LL | format!("s", foo = foo, bar); //~ ERROR expected `=`
25+ | ^^^ expected `=`
26+
2127error: expected expression, found keyword `struct`
22- --> $DIR/format-parse-errors.rs:5 :24
28+ --> $DIR/format-parse-errors.rs:6 :24
2329 |
2430LL | format!("s", foo = struct); //~ ERROR expected expression
2531 | ^^^^^^ expected expression
2632
2733error: expected expression, found keyword `struct`
28- --> $DIR/format-parse-errors.rs:6 :18
34+ --> $DIR/format-parse-errors.rs:7 :18
2935 |
3036LL | format!("s", struct); //~ ERROR expected expression
3137 | ^^^^^^ expected expression
3238
3339error: format argument must be a string literal
34- --> $DIR/format-parse-errors.rs:9 :13
40+ --> $DIR/format-parse-errors.rs:10 :13
3541 |
3642LL | format!(123); //~ ERROR format argument must be a string literal
3743 | ^^^
@@ -40,5 +46,5 @@ help: you might be missing a string literal to format with
4046LL | format!("{}", 123); //~ ERROR format argument must be a string literal
4147 | ^^^^^
4248
43- error: aborting due to 6 previous errors
49+ error: aborting due to 7 previous errors
4450
0 commit comments