rust/tests/rustdoc/local-reexport-doc.rs

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

17 lines
336 B
Rust
Raw Normal View History

// 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="toggle top-doc"]/*[@class="docblock"]' \
// 'outer module inner module'
mod inner_mod {
/// inner module
pub fn g() {}
}
/// outer module
pub use inner_mod::g;