blob: 7cd3ff3d629e98fc5c6f94a382ec969e7ff2eb2a [file] [log] [blame] [edit]
//@ compile-flags: -Z trace-macros
#![recursion_limit = "5"]
fn main() {
macro_rules! stack {
($overflow:expr) => {
print!(stack!($overflow));
//~^ ERROR recursion limit reached while expanding
//~| ERROR format argument must be a string literal
};
}
stack!("overflow");
}