mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-04 09:44:40 +00:00
8 lines
125 B
Rust
8 lines
125 B
Rust
macro_rules! foo {
|
|
($s:ident ( $p:pat )) => {
|
|
Foo {
|
|
name: Name::$s($p),
|
|
..
|
|
}
|
|
};
|
|
} |