Fix HasAttrs support for GenericParam
This commit is contained in:
parent
390aa5d421
commit
8bc3a35576
2 changed files with 6 additions and 11 deletions
|
@ -4752,7 +4752,7 @@ impl<'a> Parser<'a> {
|
|||
self.span_err(question_span,
|
||||
"`?` may only modify trait bounds, not lifetime bounds");
|
||||
}
|
||||
bounds.push(Outlives(RegionTyParamBound(self.expect_lifetime())));
|
||||
bounds.push(Outlives(self.expect_lifetime()));
|
||||
if has_parens {
|
||||
self.expect(&token::CloseDelim(token::Paren))?;
|
||||
self.span_err(self.prev_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue