Skip to content

Commit

Permalink
Parse where-clause on const item without value expr
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 3, 2023
1 parent 3805187 commit d73386e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,7 @@ pub(crate) mod parsing {
let colon_token = input.parse()?;
let ty = input.parse()?;
if input.peek(Token![;]) {
input.parse::<Option<WhereClause>>()?;
input.parse::<Token![;]>()?;
Ok(Item::Verbatim(verbatim::between(&begin, input)))
} else {
Expand Down

0 comments on commit d73386e

Please sign in to comment.