2020-06-20 19:59:04 -05:00
|
|
|
pub struct FirstStruct;
|
|
|
|
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! outer_macro {
|
2021-03-26 22:23:20 -05:00
|
|
|
($name:ident, $attr_struct_name:ident) => {
|
2020-06-20 19:59:04 -05:00
|
|
|
#[macro_export]
|
|
|
|
macro_rules! inner_macro {
|
2021-03-26 22:23:20 -05:00
|
|
|
($bang_macro:ident, $attr_macro:ident) => {
|
|
|
|
$bang_macro!($name);
|
|
|
|
#[$attr_macro] struct $attr_struct_name {}
|
2020-06-20 19:59:04 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-26 22:23:20 -05:00
|
|
|
outer_macro!(FirstStruct, FirstAttrStruct);
|