rust/src/test/ui/issues/issue-52169.rs
2019-07-27 18:56:16 +03:00

15 lines
192 B
Rust

// run-pass
macro_rules! a {
($i:literal) => { "right" };
($i:tt) => { "wrong" };
}
macro_rules! b {
($i:literal) => { a!($i) };
}
fn main() {
assert_eq!(b!(0), "right");
}