1 #![allow(unused_macros)]
5 //~^ ERROR repetition matches empty token tree
7 //~^ ERROR repetition matches empty token tree
9 ( $(),* ) => {}; // PASS
10 ( $(),+ ) => {}; // PASS
13 //~^ ERROR repetition matches empty token tree
15 //~^ ERROR repetition matches empty token tree
17 ( [$(),*] ) => {}; // PASS
18 ( [$(),+] ) => {}; // PASS
20 ( $($()* $(),* $(a)* $(a),* )* ) => {};
21 //~^ ERROR repetition matches empty token tree
22 ( $($()* $(),* $(a)* $(a),* )+ ) => {};
23 //~^ ERROR repetition matches empty token tree
25 ( $(a $(),* $(a)* $(a),* )* ) => {}; // PASS
26 ( $($(a)+ $(),* $(a)* $(a),* )+ ) => {}; // PASS
29 //~^ ERROR repetition matches empty token tree
31 //~^ ERROR repetition matches empty token tree
35 // --- Original Issue --- //
37 macro_rules! make_vec {
38 (a $e1:expr $($(, a $e2:expr)*)*) => ([$e1 $($(, $e2)*)*]);
39 //~^ ERROR repetition matches empty token tree
43 let _ = make_vec![a 1, a 2, a 3];
47 // --- Minified Issue --- //
51 //~^ ERROR repetition matches empty token tree