summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-61053-duplicate-binder.rs
blob: 34aa571c11ee664bbb3c596e9de0d4a60ee73903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![deny(meta_variable_misuse)]

macro_rules! foo {
    () => {};
    (error) => {
        macro_rules! bar {
            ($x:tt $x:tt) => { $x }; //~ ERROR duplicate matcher binding
        }
    };
}

fn main() {
    foo!();
}