Skip to content

Commit

Permalink
tests(attribute-in-enum): Add a test with a macro attribute for exhau…
Browse files Browse the repository at this point in the history
…stivity

Current naive implementation fails with multi-line macro attributes.
  • Loading branch information
malikolivier committed Aug 19, 2024
1 parent df5b6d9 commit 933e997
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/target/attribute-in-enum/vertical-macro-one-line.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
enum A {
B {
a: usize,
b: usize,
c: usize,
d: usize,
},

#[attr]
C {
a: usize,
},
}

0 comments on commit 933e997

Please sign in to comment.