Add regression test for doc of reexport of local items

This commit is contained in:
Guillaume Gomez 2022-11-02 16:55:55 +01:00
parent 1123852d08
commit c983bb162c
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// 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;