mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
20 lines
361 B
Rust
20 lines
361 B
Rust
#[macro_export]
|
|
macro_rules! helper1 {
|
|
() => ( struct S; )
|
|
}
|
|
|
|
#[macro_export(local_inner_macros)]
|
|
macro_rules! helper2 {
|
|
() => ( helper1!(); )
|
|
}
|
|
|
|
#[macro_export(local_inner_macros)]
|
|
macro_rules! public_macro {
|
|
() => ( helper2!(); )
|
|
}
|
|
|
|
#[macro_export(local_inner_macros)]
|
|
macro_rules! public_macro_dynamic {
|
|
($helper: ident) => ( $helper!(); )
|
|
}
|