Skip to content

Commit

Permalink
Add regression test for chained comparisons with bailout
Browse files Browse the repository at this point in the history
    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
  • Loading branch information
dtolnay committed Jan 10, 2025
1 parent 9872bef commit d3f2879
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 @@ -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) },
Expand Down

0 comments on commit d3f2879

Please sign in to comment.