rust/src/test/ui/recursion_limit/zero.rs
Cameron Steffen 90f4521cfd Bless tests
2021-10-15 02:36:58 -05:00

12 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() {}