mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
370 B
Rust
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;
|