Fix handling of structs in match arms

This commit is contained in:
DJMcNab 2018-12-19 19:35:14 +00:00
parent cd8e33fb7e
commit 4dce66ad31
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ fn match_arm(p: &mut Parser) -> BlockLike {
patterns::pattern(p);
}
if p.eat(IF_KW) {
expr_no_struct(p);
expr(p);
}
p.expect(FAT_ARROW);
let ret = expr_stmt(p);