summary refs log tree commit diff
path: root/src/test/ui/issues/issue-52169.rs
blob: 60be97f0aee23370fc836002e69ca5377a2087f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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");
}