Move lifetimes before the *first* type argument
This commit is contained in:
parent
79ee8f329d
commit
234d043d18
2 changed files with 5 additions and 3 deletions
|
@ -5229,7 +5229,9 @@ impl<'a> Parser<'a> {
|
|||
} else if self.check_ident() {
|
||||
// Parse type parameter.
|
||||
params.push(self.parse_ty_param(attrs)?);
|
||||
seen_ty_param = Some(self.prev_span);
|
||||
if seen_ty_param.is_none() {
|
||||
seen_ty_param = Some(self.prev_span);
|
||||
}
|
||||
} else {
|
||||
// Check for trailing attributes and stop parsing.
|
||||
if !attrs.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue