rust/tests/rustdoc/auxiliary/macro_pub_in_module.rs

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

14 lines
267 B
Rust
Raw Normal View History

// edition:2018
#![feature(decl_macro)]
#![crate_name = "external_crate"]
pub mod some_module {
/* == Make sure the logic is not affected by a re-export == */
mod private {
pub macro external_macro() {}
}
2020-12-27 18:05:35 +00:00
pub use private::external_macro;
}