Skip to content

Commit c983bb1

Browse files
Add regression test for doc of reexport of local items
1 parent 1123852 commit c983bb1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This test ensures that the reexports of local items also get the doc from
2+
// the reexport.
3+
4+
#![crate_name = "foo"]
5+
6+
// @has 'foo/fn.g.html'
7+
// @has - '//*[@class="rustdoc-toggle top-doc"]/*[@class="docblock"]' \
8+
// 'outer module inner module'
9+
10+
mod inner_mod {
11+
/// inner module
12+
pub fn g() {}
13+
}
14+
15+
/// outer module
16+
pub use inner_mod::g;

0 commit comments

Comments
 (0)