rust/tests/ui/recursion_limit/zero.rs
2023-01-11 09:32:08 +00:00

13 lines
217 B
Rust

// Test that a `limit` of 0 is valid
#![recursion_limit = "0"]
macro_rules! test {
() => {};
($tt:tt) => { test!(); };
}
test!(test); //~ ERROR recursion limit reached while expanding `test!`
fn main() {}