We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1123852 commit c983bb1Copy full SHA for c983bb1
src/test/rustdoc/local-reexport-doc.rs
@@ -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