rust/tests/rustdoc/local-reexport-doc.rs
2023-01-11 09:32:08 +00:00

17 lines
344 B
Rust

// This test ensures that the reexports of local items also get the doc from
// the reexport.
#![crate_name = "foo"]
// @has 'foo/fn.g.html'
// @has - '//*[@class="rustdoc-toggle top-doc"]/*[@class="docblock"]' \
// 'outer module inner module'
mod inner_mod {
/// inner module
pub fn g() {}
}
/// outer module
pub use inner_mod::g;