tests: add case for issue 4675

This commit is contained in:
Caleb Cartwright 2021-01-28 19:13:48 -06:00 committed by Caleb Cartwright
parent f0fe48f2bd
commit d80a42fdd8
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
macro_rules! foo {
($s:ident ( $p:pat )) => {
Foo {
name: Name::$s($p),
..
}
};
}

View File

@ -0,0 +1,8 @@
macro_rules! foo {
($s:ident ( $p:pat )) => {
Foo {
name: Name::$s($p),
..
}
};
}