mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
342 B
Rust
15 lines
342 B
Rust
//@ compile-flags: -Z trace-macros
|
|
|
|
#![recursion_limit = "5"]
|
|
|
|
fn main() {
|
|
macro_rules! stack {
|
|
($overflow:expr) => {
|
|
println!(stack!($overflow));
|
|
//~^ ERROR recursion limit reached while expanding
|
|
//~| ERROR format argument must be a string literal
|
|
};
|
|
}
|
|
|
|
stack!("overflow");
|
|
}
|