☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
execute
/
torture
/
macros6.rs
☽
☼
gcc/testsuite/rust/execute/torture/macros6.rs
code
plain
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
}