@@ -18,20 +18,26 @@ error: expected expression, found `<eof>`
18
18
LL | format!("s", name =); //~ ERROR expected expression
19
19
| ^ expected expression
20
20
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
+
21
27
error: expected expression, found keyword `struct`
22
- --> $DIR/format-parse-errors.rs:5 :24
28
+ --> $DIR/format-parse-errors.rs:6 :24
23
29
|
24
30
LL | format!("s", foo = struct); //~ ERROR expected expression
25
31
| ^^^^^^ expected expression
26
32
27
33
error: expected expression, found keyword `struct`
28
- --> $DIR/format-parse-errors.rs:6 :18
34
+ --> $DIR/format-parse-errors.rs:7 :18
29
35
|
30
36
LL | format!("s", struct); //~ ERROR expected expression
31
37
| ^^^^^^ expected expression
32
38
33
39
error: format argument must be a string literal
34
- --> $DIR/format-parse-errors.rs:9 :13
40
+ --> $DIR/format-parse-errors.rs:10 :13
35
41
|
36
42
LL | format!(123); //~ ERROR format argument must be a string literal
37
43
| ^^^
@@ -40,5 +46,5 @@ help: you might be missing a string literal to format with
40
46
LL | format!("{}", 123); //~ ERROR format argument must be a string literal
41
47
| ^^^^^
42
48
43
- error: aborting due to 6 previous errors
49
+ error: aborting due to 7 previous errors
44
50
0 commit comments