Skip to content

Commit

Permalink
Parse type parameter defaults on impl blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Apr 27, 2021
1 parent e6f9080 commit f6f10fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2469,7 +2469,8 @@ pub mod parsing {
|| (input.peek2(Ident) || input.peek2(Lifetime))
&& (input.peek3(Token![:])
|| input.peek3(Token![,])
|| input.peek3(Token![>]))
|| input.peek3(Token![>])
|| input.peek3(Token![=]))
|| input.peek2(Token![const]));
let mut generics: Generics = if has_generics {
input.parse()?
Expand Down

0 comments on commit f6f10fd

Please sign in to comment.