diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2016-10-19 18:21:27 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2016-11-14 10:23:20 +0300 |
| commit | cf9ff2b59bf876650b1e13ab66078bfd22ac85ef (patch) | |
| tree | cc220789e5ba1885805fad28409cab5f511a25c3 /src/libsyntax | |
| parent | a41505f4f4a93bf94f4f7439d41afd826ab20b94 (diff) | |
| download | rust-cf9ff2b59bf876650b1e13ab66078bfd22ac85ef.tar.gz rust-cf9ff2b59bf876650b1e13ab66078bfd22ac85ef.zip | |
Fix where clauses parsing
Don't allow lifetimes without any bounds at all
Diffstat (limited to 'src/libsyntax')
| -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 61268d457ce..e1de32de790 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4440,7 +4440,7 @@ impl<'a> Parser<'a> { let bounded_lifetime = self.parse_lifetime()?; - self.eat(&token::Colon); + self.expect(&token::Colon)?; let bounds = self.parse_lifetimes(token::BinOp(token::Plus))?; |
