From b2fa2109794eab06677fb8eed6686f74ae47ac82 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 1 Jan 2025 12:17:18 -0800 Subject: [PATCH] Add test of deeply nested prefix ranges --- tests/test_expr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index d5b4232538..0943c44869 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -830,6 +830,7 @@ fn test_fixup() { quote! { (self.f)() }, quote! { (return)..=return }, quote! { 1 + (return)..=1 + return }, + quote! { .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }, ] { let original: Expr = syn::parse2(tokens).unwrap();