Skip to content

Commit

Permalink
Allow multiple parenthesized path argument segments in the same path
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 19, 2022
1 parent ba6cd8e commit 42e9942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ pub mod parsing {
let expr_style = false;
let (qself, mut path) = path::parsing::qpath(input, expr_style)?;

if path.segments.last().unwrap().arguments.is_empty()
while path.segments.last().unwrap().arguments.is_empty()
&& (input.peek(token::Paren) || input.peek(Token![::]) && input.peek3(token::Paren))
{
input.parse::<Option<Token![::]>>()?;
Expand Down

0 comments on commit 42e9942

Please sign in to comment.