Fix where clauses parsing
Don't allow lifetimes without any bounds at all
This commit is contained in:
parent
a41505f4f4
commit
cf9ff2b59b
3 changed files with 7 additions and 4 deletions
|
@ -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))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue