Skip to content

Commit

Permalink
Support trailing plus on impl trait type
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 3, 2021
1 parent a153bc9 commit caea567
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,14 @@ pub mod parsing {
break;
}
bounds.push_punct(input.parse()?);
if !(input.peek(Ident::peek_any)
|| input.peek(Token![::])
|| input.peek(Token![?])
|| input.peek(Lifetime)
|| input.peek(token::Paren))
{
break;
}
}
bounds
},
Expand Down

0 comments on commit caea567

Please sign in to comment.