1 // Test that duplicate matcher binding names are caught at declaration time, rather than at macro
4 #![allow(unused_macros)]
7 ($a:ident, $a:ident) => {}; //~ERROR duplicate matcher binding
8 ($a:ident, $a:path) => {}; //~ERROR duplicate matcher binding
12 ($a:ident) => {}; // OK
13 ($a:path) => {}; // OK
17 ($a:ident, $($a:ident),*) => {}; //~ERROR duplicate matcher binding
18 ($($a:ident)+ # $($($a:path),+);*) => {}; //~ERROR duplicate matcher binding