mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-11-23 23:10:01 +00:00
Add failing test involving macro_rules metavariable
This commit is contained in:
parent
31fe82a215
commit
f7d06cae4c
@ -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);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user