summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/macro-indirect-use.rs
blob: b2d9336cffc815ef234fa8350c245232e6064ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Checks that it is possible to make a macro public through a `pub use` of its
// parent module.
//
// This is a regression test for issue #87257.

#![feature(decl_macro)]

mod outer {
    pub mod inner {
        pub macro some_macro() {}
    }
}

// @has macro_indirect_use/inner/index.html
// @has macro_indirect_use/inner/macro.some_macro.html
pub use outer::inner;