From d73386e36a2823293f1117f563266bc6d11db2b9 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 3 Sep 2023 09:46:43 -0700 Subject: [PATCH] Parse where-clause on const item without value expr --- src/item.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/item.rs b/src/item.rs index 39a5f4cd1b..e504ab84c7 100644 --- a/src/item.rs +++ b/src/item.rs @@ -989,6 +989,7 @@ pub(crate) mod parsing { let colon_token = input.parse()?; let ty = input.parse()?; if input.peek(Token![;]) { + input.parse::>()?; input.parse::()?; Ok(Item::Verbatim(verbatim::between(&begin, input))) } else {