1
Fork 0

Insert NoDelim groups around nonterminals when lowering macro_rules

This commit is contained in:
Aaron Hill 2020-06-20 20:59:04 -04:00
parent 0ca7f74dbd
commit 5da0576d83
No known key found for this signature in database
GPG key ID: B4087E510E98B164
12 changed files with 309 additions and 8 deletions

View file

@ -0,0 +1,20 @@
// run-pass
// aux-build:nested-macro-rules.rs
// aux-build:test-macros.rs
// compile-flags: -Z span-debug
// edition:2018
extern crate nested_macro_rules;
extern crate test_macros;
use test_macros::print_bang;
use nested_macro_rules::FirstStruct;
struct SecondStruct;
fn main() {
nested_macro_rules::inner_macro!(print_bang);
nested_macro_rules::outer_macro!(SecondStruct);
inner_macro!(print_bang);
}