Fix handling of structs in match arms
This commit is contained in:
parent
cd8e33fb7e
commit
4dce66ad31
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user