rust/tests/rustdoc/macro-indirect-use.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
370 B
Rust
Raw Normal View History

2021-08-06 00:09:25 -05:00
// 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
2021-08-06 00:09:25 -05:00
pub use outer::inner;