about summary refs log tree commit diff
path: root/tests/rustdoc/macro/macro-indirect-use.rs
blob: e410e96ae6a950710d5d8fc6d16748b22e11b531 (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;