mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
341 B
Rust
16 lines
341 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");
|
|
}
|