summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro/issue-33569.rs
blob: 069d181e96267a5ccd32c5e129d68bb3d930f76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! foo {
    { $+ } => { //~ ERROR expected identifier, found `+`
                //~^ ERROR missing fragment specifier
                //~| ERROR missing fragment specifier
                //~| WARN this was previously accepted
        $(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
    }
}

foo!();

fn main() {}