rust/tests/rustdoc/macro-indirect-use.rs
2024-06-24 11:08:41 +02:00

17 lines
370 B
Rust

// 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;