Debian Codegraph @

gcc/testsuite/rust/execute/torture/macros6.rs

raw
1 macro_rules! Test {
2 ($a:ident, $b:ty) => {
3 struct $a($b);
4 };
5 }
6
7 Test!(Foo, i32);
8
9 fn main() -> i32 {
10 let a = Foo(123);
11 a.0 - 123
12 }