1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// build-pass (FIXME(62277): could be check-pass?) macro_rules! define_exported { () => { #[macro_export] macro_rules! exported { () => () } }} mod inner1 { use super::*; exported!(); } mod inner2 { define_exported!(); } fn main() {}