Skip to content

Commit

Permalink
Add failing test involving macro_rules metavariable
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 30, 2020
1 parent 31fe82a commit f7d06ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_suite/tests/test_gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit f7d06ca

Please sign in to comment.