Skip to content

Commit

Permalink
Add test of attr precedence inside subexpression
Browse files Browse the repository at this point in the history
    ---- test_fixup stdout ----
    thread 'test_fixup' panicked at tests/test_expr.rs:716:9:
    original: (# [attr] thing) . field
    reconstructed: # [attr] thing . field
  • Loading branch information
dtolnay committed Nov 29, 2024
1 parent ee6cd5d commit 401399f
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 @@ -702,6 +702,7 @@ fn test_fixup() {
quote! { (..) += () },
quote! { (1 < 2) == (3 < 4) },
quote! { { (let _ = ()) } },
quote! { (#[attr] thing).field },
] {
let original: Expr = syn::parse2(tokens).unwrap();

Expand Down

0 comments on commit 401399f

Please sign in to comment.