Skip to content

Commit d80a42f

Browse files
tests: add case for issue 4675
1 parent f0fe48f commit d80a42f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: tests/source/issue_4675.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
macro_rules! foo {
2+
($s:ident ( $p:pat )) => {
3+
Foo {
4+
name: Name::$s($p),
5+
..
6+
}
7+
};
8+
}

Diff for: tests/target/issue_4675.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
macro_rules! foo {
2+
($s:ident ( $p:pat )) => {
3+
Foo {
4+
name: Name::$s($p),
5+
..
6+
}
7+
};
8+
}

0 commit comments

Comments
 (0)