Skip to content

Commit

Permalink
Add regression test for issue 1738
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 27, 2024
1 parent 346efae commit 3f3d0c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,12 @@ fn test_assign_range_precedence() {
syn::parse_str::<Expr>("() .. () += ()").unwrap_err();
}

#[test]
fn test_chained_comparison() {
// https://github.com/dtolnay/syn/issues/1738
let _ = syn::parse_str::<Expr>("a = a < a <");
}

#[test]
fn test_fixup() {
struct FlattenParens;
Expand Down

0 comments on commit 3f3d0c5

Please sign in to comment.