macro_rules! decl_mod {
($(
mod $name:ident;
)+) => {
$(
decl_mod! {
origin concat!("../examples/", stringify!($name),".rs"),
expand concat!("../tests/expand/", stringify!($name),".stdout"),
mod $name
}
)+
};
(origin $origin: expr, expand $expand: expr, mod $name: ident) => {
#[doc = include_str!($origin)]
#[doc = include_str!($expand)]
pub mod $name {}
};
}
decl_mod! {
mod allowlisting;
mod blank;
mod blocklisting;
mod enums;
mod tuples;
mod with;
}