mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 05:14:27 +00:00
tests: add case for issue 4675
This commit is contained in:
parent
f0fe48f2bd
commit
d80a42fdd8
8
tests/source/issue_4675.rs
Normal file
8
tests/source/issue_4675.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
macro_rules! foo {
|
||||||
|
($s:ident ( $p:pat )) => {
|
||||||
|
Foo {
|
||||||
|
name: Name::$s($p),
|
||||||
|
..
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
8
tests/target/issue_4675.rs
Normal file
8
tests/target/issue_4675.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
macro_rules! foo {
|
||||||
|
($s:ident ( $p:pat )) => {
|
||||||
|
Foo {
|
||||||
|
name: Name::$s($p),
|
||||||
|
..
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user