mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 06:16:06 +00:00
17 lines
172 B
Rust
17 lines
172 B
Rust
//@ check-pass
|
|
|
|
macro_rules! foo {
|
|
($a:literal) => {
|
|
bar!($a)
|
|
};
|
|
}
|
|
|
|
macro_rules! bar {
|
|
($b:literal) => {};
|
|
}
|
|
|
|
fn main() {
|
|
foo!(-2);
|
|
bar!(-2);
|
|
}
|