mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
e63664773c
* Move dyn-drop to dyn-keyword * Reorganize `tests/ui/empty` into specific dirs remove tests/ui/empty/empty-linkname.rs duplicate of tests/ui/error-codes/E0454.rs * Move `missing-trait-bounds` to `trait-bound/missing-trait-bounds` * bless traits/missing-trait-bounds tests * Move `recursion_limit` to `recursion/recursion_limit` * Move `version` to `compile-flags`
13 lines
217 B
Rust
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() {}
|