mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-30 14:40:04 +08:00
14 lines
207 B
Rust
14 lines
207 B
Rust
|
macro_rules! foo {
|
||
|
($a:ident, $b:ident, $c:ident) => {
|
||
|
struct a { value: $a };
|
||
|
struct b { value: $b };
|
||
|
};
|
||
|
($a:ident) => {
|
||
|
struct a { value: $a };
|
||
|
};
|
||
|
}
|
||
|
|
||
|
foo! {
|
||
|
A
|
||
|
}
|