rust/tests/ui/parser/issues/issue-70050-ntliteral-accepts-negated-lit.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
171 B
Rust
Raw Normal View History

// check-pass
macro_rules! foo {
($a:literal) => {
bar!($a)
};
}
macro_rules! bar {
($b:literal) => {};
}
fn main() {
foo!(-2);
bar!(-2);
}