Refactor 'parse_enum_item' to use 'parse_delim_comma_seq'
This commit is contained in:
parent
7d761fe046
commit
5c34a11324
11 changed files with 127 additions and 95 deletions
|
@ -2,7 +2,9 @@ error: expected one of `)` or `,`, found `(`
|
|||
--> $DIR/test.rs:4:26
|
||||
|
|
||||
LL | struct S2(pub((foo)) ());
|
||||
| ^ expected one of `)` or `,`
|
||||
| -^ expected one of `)` or `,`
|
||||
| |
|
||||
| help: missing `,`
|
||||
|
||||
error[E0412]: cannot find type `foo` in this scope
|
||||
--> $DIR/test.rs:4:20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue