Expect pipe symbol after closure parameter lists
This commit is contained in:
parent
a3beb8fe61
commit
258ec30116
2 changed files with 17 additions and 1 deletions
|
@ -4699,7 +4699,7 @@ impl<'a> Parser<'a> {
|
|||
SeqSep::trailing_allowed(token::Comma),
|
||||
|p| p.parse_fn_block_arg()
|
||||
);
|
||||
self.bump();
|
||||
self.expect(&token::BinOp(token::Or))?;
|
||||
args
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue