From 977a524bccf424ec9ae26391a1d7fb3107be2aca Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 1 Jan 2025 12:12:46 -0800 Subject: [PATCH] Add test of second-level break confusable --- tests/test_expr.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index 3a8f6d412d..0c210019fe 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -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 {} },