Fix handling of structs in match arms
This commit is contained in:
@@ -362,7 +362,7 @@ fn match_arm(p: &mut Parser) -> BlockLike {
|
|||||||
patterns::pattern(p);
|
patterns::pattern(p);
|
||||||
}
|
}
|
||||||
if p.eat(IF_KW) {
|
if p.eat(IF_KW) {
|
||||||
expr_no_struct(p);
|
expr(p);
|
||||||
}
|
}
|
||||||
p.expect(FAT_ARROW);
|
p.expect(FAT_ARROW);
|
||||||
let ret = expr_stmt(p);
|
let ret = expr_stmt(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user