Skip to content

Commit

Permalink
Add regression test for doc of reexport of local items
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 2, 2022
1 parent 1123852 commit c983bb1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/rustdoc/local-reexport-doc.rs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit c983bb1

Please sign in to comment.