diff --git a/tests/test_expr.rs b/tests/test_expr.rs index d20cce8d6a..f79e4fafda 100644 --- a/tests/test_expr.rs +++ b/tests/test_expr.rs @@ -642,6 +642,12 @@ fn test_assign_range_precedence() { syn::parse_str::("() .. () += ()").unwrap_err(); } +#[test] +fn test_chained_comparison() { + // https://github.com/dtolnay/syn/issues/1738 + let _ = syn::parse_str::("a = a < a <"); +} + #[test] fn test_fixup() { struct FlattenParens;