Add failing test involving macro_rules metavariable

This commit is contained in:
David Tolnay 2020-05-29 17:58:10 -07:00
parent 31fe82a215
commit f7d06cae4c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -708,6 +708,17 @@ fn test_gen() {
x: u8,
y: u16,
}
macro_rules! deriving {
($field:ty) => {
#[derive(Deserialize)]
struct MacroRules<'a> {
field: $field,
}
};
}
deriving!(&'a str);
}
//////////////////////////////////////////////////////////////////////////