diff options
| author | Wonwoo Choi <chwo9843@gmail.com> | 2017-09-05 18:25:42 +0900 |
|---|---|---|
| committer | Wonwoo Choi <chwo9843@gmail.com> | 2017-09-05 18:25:42 +0900 |
| commit | 258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31 (patch) | |
| tree | 48518456359974e635646609a63be0ca46db4233 /src/libsyntax/parse/parser.rs | |
| parent | a3beb8fe61cb73c2eb3a2d47c87d3945a6f52865 (diff) | |
| download | rust-258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31.tar.gz rust-258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31.zip | |
Expect pipe symbol after closure parameter lists
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1f033b25fe4..a52d0488307 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 } }; |
