]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-61053-duplicate-binder.rs
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / macros / issue-61053-duplicate-binder.rs
1 #![deny(meta_variable_misuse)]
2
3 macro_rules! foo {
4     () => {};
5     (error) => {
6         macro_rules! bar {
7             ($x:tt $x:tt) => { $x }; //~ ERROR duplicate matcher binding
8         }
9     };
10 }
11
12 fn main() {
13     foo!();
14 }