about summary refs log tree commit diff
path: root/src/test/rustdoc/auxiliary/macro_pub_in_module.rs
blob: fa987689ec650b3936e199dad1fae151e83fa761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// edition:2018

#![feature(decl_macro)]
#![crate_name = "external_crate"]

pub mod some_module {
    /* == Make sure the logic is not affected by a re-export == */
    mod private {
        pub macro external_macro() {}
    }
    // @has external_crate/some_module/macro.external_macro.html
    pub use private::external_macro;
}