]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/macros/macro-nested_stmt_macros.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / macros / macro-nested_stmt_macros.rs
CommitLineData
b7449926 1// run-pass
9346a6ac
AL
2macro_rules! foo {
3 () => {
4 struct Bar;
5 struct Baz;
6 }
7}
8
9macro_rules! grault {
10 () => {
11 foo!();
12 struct Xyzzy;
13 }
14}
15
16fn static_assert_exists<T>() { }
17
c34b1796 18fn main() {
9346a6ac
AL
19 grault!();
20 static_assert_exists::<Bar>();
21 static_assert_exists::<Baz>();
22 static_assert_exists::<Xyzzy>();
223e47cc 23}