commit | cb445c1a3ef962c00dc65eecec827ca73c253bda | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Oct 27 22:36:16 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Oct 27 22:36:16 2018 -0700 |
tree | 9bb71f13737b8cb54fa77f6071d77ac41389fd9f | |
parent | 4df5851ab0790a06862c81dc28ab15d5050168c2 [diff] |
Allow trailing plus on type parameter with default
diff --git a/src/generics.rs b/src/generics.rs index 51c6080..afcf9a4 100644 --- a/src/generics.rs +++ b/src/generics.rs
@@ -658,7 +658,7 @@ let mut bounds = Punctuated::new(); if has_colon { loop { - if input.peek(Token![,]) || input.peek(Token![>]) { + if input.peek(Token![,]) || input.peek(Token![>]) || input.peek(Token![=]) { break; } let value = input.parse()?;