about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs
blob: 5927875a20f3593c1ab82eada2b70eec7af5a3c4 (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);
}