Skip to content

Commit

Permalink
Add fixup test for break with leading label
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 2, 2024
1 parent cc5e64e commit 93931a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ fn test_fixup() {
quote! { match m { _ => ({}) - 1 } },
quote! { if let _ = (a && b) && c {} },
quote! { if let _ = (S {}) {} },
quote! { break ('a: loop { break 'a 1 } + 1) },
] {
let original: Expr = syn::parse2(tokens).unwrap();

Expand Down

0 comments on commit 93931a4

Please sign in to comment.