]> git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/nested-macro-rules.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / proc-macro / nested-macro-rules.rs
1 // run-pass
2 // aux-build:nested-macro-rules.rs
3 // aux-build:test-macros.rs
4 // compile-flags: -Z span-debug
5 // edition:2018
6
7 extern crate nested_macro_rules;
8 extern crate test_macros;
9
10 use test_macros::print_bang;
11
12 use nested_macro_rules::FirstStruct;
13 struct SecondStruct;
14
15 fn main() {
16 nested_macro_rules::inner_macro!(print_bang);
17
18 nested_macro_rules::outer_macro!(SecondStruct);
19 inner_macro!(print_bang);
20 }