rust/tests/ui/recursion_limit/zero.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
217 B
Rust
Raw Normal View History

// Test that a `limit` of 0 is valid
2019-12-12 22:18:21 -06:00
#![recursion_limit = "0"]
macro_rules! test {
() => {};
($tt:tt) => { test!(); };
}
2021-10-14 13:28:28 -05:00
test!(test); //~ ERROR recursion limit reached while expanding `test!`
2019-12-12 22:18:21 -06:00
fn main() {}