2 // aux-build:issue-79242.rs
4 // Regression test for issue #79242
5 // Tests that compilation time doesn't blow up for a proc-macro
6 // invocation with deeply nested nonterminals
10 extern crate issue_79242;
12 macro_rules! declare_nats {
14 ($prev:ty, $n:literal$(, $tail:literal)*) => {
20 declare_nats!(Option<$prev>$(, $tail)*);
22 (0, $($n:literal),+) => {
24 declare_nats!(N0, $($n),+);
29 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
30 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28