Fix where clauses parsing

Don't allow lifetimes without any bounds at all
This commit is contained in:
Aleksey Kladov 2016-10-19 18:21:27 +03:00
parent a41505f4f4
commit cf9ff2b59b
3 changed files with 7 additions and 4 deletions

View file

@ -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))?;