diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2021-01-28 19:13:48 -0600 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2021-01-28 22:01:50 -0600 |
| commit | d80a42fdd84f61736ebc5d0d2e5f874a482eb651 (patch) | |
| tree | a044fd8254e56560ae32f0e2c91d48b4ddf1ff47 | |
| parent | f0fe48f2bd3f70b132fb6aa2ed99fa034a1366f7 (diff) | |
| download | rust-d80a42fdd84f61736ebc5d0d2e5f874a482eb651.tar.gz rust-d80a42fdd84f61736ebc5d0d2e5f874a482eb651.zip | |
tests: add case for issue 4675
| -rw-r--r-- | tests/source/issue_4675.rs | 8 | ||||
| -rw-r--r-- | tests/target/issue_4675.rs | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/source/issue_4675.rs b/tests/source/issue_4675.rs new file mode 100644 index 00000000000..66613eed000 --- /dev/null +++ b/tests/source/issue_4675.rs @@ -0,0 +1,8 @@ +macro_rules! foo { + ($s:ident ( $p:pat )) => { + Foo { + name: Name::$s($p), + .. + } + }; +} \ No newline at end of file diff --git a/tests/target/issue_4675.rs b/tests/target/issue_4675.rs new file mode 100644 index 00000000000..a65f86832ee --- /dev/null +++ b/tests/target/issue_4675.rs @@ -0,0 +1,8 @@ +macro_rules! foo { + ($s:ident ( $p:pat )) => { + Foo { + name: Name::$s($p), + .. + } + }; +} |
