summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs
blob: aca9d9eb0a5b4c3e837897a45100b238bf8334f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

macro_rules! foo {
    ($a:literal) => {
        bar!($a)
    };
}

macro_rules! bar {
    ($b:literal) => {};
}

fn main() {
    foo!(-2);
    bar!(-2);
}