1 // Regression test for issue #61033.
2 
3 macro_rules! test2 {
4     (
5         $(* $id1:ident)*
6         $(+ $id2:ident)*
7     ) => {
8         $(
9         //~^ ERROR meta-variable `id1` repeats 2 times
10         //~| ERROR meta-variable `id1` repeats 2 times
11             $id1 + $id2 // $id1 and $id2 may repeat different numbers of times
12         )*
13     }
14 }
15 
main()16 fn main() {
17     test2! {
18         * a * b
19         + a + b + c
20     }
21     test2! {
22         * a * b
23         + a + b + c + d
24     }
25 }
26