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-13 04:18:21 +00:00
#![recursion_limit = "0"]
macro_rules! test {
() => {};
($tt:tt) => { test!(); };
}
2021-10-14 18:28:28 +00:00
test!(test); //~ ERROR recursion limit reached while expanding `test!`
2019-12-13 04:18:21 +00:00
fn main() {}