rust/src/test/ui/issues/issue-52169.rs

15 lines
192 B
Rust
Raw Normal View History

// 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");
}