From d3f2879241b90a12182d1d78a04fc91088c584e0 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 9 Jan 2025 17:09:48 -0800 Subject: [PATCH] Add regression test for chained comparisons with bailout thread 'test_fixup' panicked at tests/test_expr.rs:843:25: failed to parse `x > .. > x`: comparison operators cannot be chained note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace --- tests/test_expr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_expr.rs b/tests/test_expr.rs index cfbf16236..226c044db 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -799,6 +799,7 @@ fn test_fixup() { quote! { (1 + 1).abs() }, quote! { (lo..hi)[..] }, quote! { (a..b)..(c..d) }, + quote! { (x > ..) > x }, quote! { (&mut fut).await }, quote! { &mut (x as i32) }, quote! { -(x as i32) },