Skip to content

Commit 79e357c

Browse files
committed
Permit empty trait bounds after colon on type item
1 parent e39fca3 commit 79e357c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,14 +1179,14 @@ pub mod parsing {
11791179
let mut bounds = Punctuated::new();
11801180
if colon_token.is_some() {
11811181
loop {
1182-
bounds.push_value(input.parse::<TypeParamBound>()?);
11831182
if input.peek(Token![where]) || input.peek(Token![=]) || input.peek(Token![;]) {
11841183
break;
11851184
}
1186-
bounds.push_punct(input.parse::<Token![+]>()?);
1185+
bounds.push_value(input.parse::<TypeParamBound>()?);
11871186
if input.peek(Token![where]) || input.peek(Token![=]) || input.peek(Token![;]) {
11881187
break;
11891188
}
1189+
bounds.push_punct(input.parse::<Token![+]>()?);
11901190
}
11911191
}
11921192
generics.where_clause = input.parse()?;

0 commit comments

Comments
 (0)