Closed
Description
I would expect the following program to print right
. Instead it prints wrong
.
#![feature(macro_literal_matcher)]
macro_rules! a {
($i:literal) => { "right" };
($i:tt) => { "wrong" };
}
macro_rules! b {
($i:literal) => { a!($i) };
}
fn main() {
println!(b!(0));
}
Originally reported by @jendrikw in #35625 (comment).