rust/tests/ui/proc-macro/nested-empty-proc-macro.rs
AprilNEA b3c3604f62
Add regression test for issue 99173
Adds a test for nested proc-macro calls where the inner macro returns an
empty TokenStream.
This previously caused an ICE in rustc_resolve.
2025-12-30 17:59:40 +08:00

12 lines
319 B
Rust

//@ check-pass
//@ proc-macro: nested-empty-proc-macro.rs
// Regression test for issue #99173
// Tests that nested proc-macro calls where the inner macro returns
// an empty TokenStream don't cause an ICE.
extern crate nested_empty_proc_macro;
fn main() {
nested_empty_proc_macro::outer_macro!(1 * 2 * 3 * 7);
}