]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-70050-ntliteral-accepts-negated-lit.rs
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / 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 }