Skip to content

Commit f7d06ca

Browse files
committed
Add failing test involving macro_rules metavariable
1 parent 31fe82a commit f7d06ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test_suite/tests/test_gen.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,17 @@ fn test_gen() {
708708
x: u8,
709709
y: u16,
710710
}
711+
712+
macro_rules! deriving {
713+
($field:ty) => {
714+
#[derive(Deserialize)]
715+
struct MacroRules<'a> {
716+
field: $field,
717+
}
718+
};
719+
}
720+
721+
deriving!(&'a str);
711722
}
712723

713724
//////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)