Skip to content

Commit

Permalink
Add test of second-level break confusable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 1, 2025
1 parent 9dd90b7 commit 977a524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,9 @@ fn test_fixup() {
quote! { if let _ = ((break) - 1 || true) {} },
quote! { if let _ = (break + 1 || true) {} },
quote! { if (break break) {} },
quote! { if break break {} {} },
quote! { if (return ..) {} },
quote! { if return .. {} {} },
quote! { if (|| Struct {}) {} },
quote! { if (|| Struct {}.await) {} },
quote! { if break || Struct {}.await {} },
Expand Down

0 comments on commit 977a524

Please sign in to comment.