Fix where clauses parsing
Don't allow lifetimes without any bounds at all
This commit is contained in:
@@ -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))?;
|
||||
|
||||
Reference in New Issue
Block a user