Skip to content

Commit 933e997

Browse files
committed
tests(attribute-in-enum): Add a test with a macro attribute for exhaustivity
Current naive implementation fails with multi-line macro attributes.
1 parent df5b6d9 commit 933e997

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
enum A {
2+
B {
3+
a: usize,
4+
b: usize,
5+
c: usize,
6+
d: usize,
7+
},
8+
9+
#[attr]
10+
C {
11+
a: usize,
12+
},
13+
}

0 commit comments

Comments
 (0)