Skip to content

Commit d3f2879

Browse files
committed
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
1 parent 9872bef commit d3f2879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_expr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ fn test_fixup() {
799799
quote! { (1 + 1).abs() },
800800
quote! { (lo..hi)[..] },
801801
quote! { (a..b)..(c..d) },
802+
quote! { (x > ..) > x },
802803
quote! { (&mut fut).await },
803804
quote! { &mut (x as i32) },
804805
quote! { -(x as i32) },

0 commit comments

Comments
 (0)