]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
9346a6ac AL |
2 | macro_rules! foo { |
3 | () => { | |
4 | struct Bar; | |
5 | struct Baz; | |
6 | } | |
7 | } | |
8 | ||
9 | macro_rules! grault { | |
10 | () => { | |
11 | foo!(); | |
12 | struct Xyzzy; | |
13 | } | |
14 | } | |
15 | ||
16 | fn static_assert_exists<T>() { } | |
17 | ||
c34b1796 | 18 | fn main() { |
9346a6ac AL |
19 | grault!(); |
20 | static_assert_exists::<Bar>(); | |
21 | static_assert_exists::<Baz>(); | |
22 | static_assert_exists::<Xyzzy>(); | |
223e47cc | 23 | } |