]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs
Rollup merge of #107608 - P1n3appl3:master, r=tmandry
[rust.git] / tests / ui / parser / issues / issue-70050-ntliteral-accepts-negated-lit.rs
1 // check-pass
2
3 macro_rules! foo {
4     ($a:literal) => {
5         bar!($a)
6     };
7 }
8
9 macro_rules! bar {
10     ($b:literal) => {};
11 }
12
13 fn main() {
14     foo!(-2);
15     bar!(-2);
16 }