fix assertione error on block parsing
This commit is contained in:
@@ -148,11 +148,7 @@ fn lambda_expr(p: &mut Parser) -> CompletedMarker {
|
||||
p.eat(MOVE_KW);
|
||||
params::param_list_opt_types(p);
|
||||
if opt_fn_ret_type(p) {
|
||||
if p.at(L_CURLY) {
|
||||
block(p);
|
||||
} else {
|
||||
p.error("expected a block");
|
||||
}
|
||||
block(p);
|
||||
} else {
|
||||
expr(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user