We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5528757 commit 9906504Copy full SHA for 9906504
tests/rustdoc/reexport-doc-hidden-inside-private.rs
@@ -0,0 +1,16 @@
1
+// This test ensures that a re-export of `#[doc(hidden)]` item inside a private
2
+// module will still be displayed (the re-export, not the item).
3
+
4
+#![crate_name = "foo"]
5
6
+mod private_module {
7
+ #[doc(hidden)]
8
+ pub struct Public;
9
+}
10
11
+// @has 'foo/index.html'
12
+// @has - '//*[@id="reexport.Foo"]/code' 'pub use crate::private_module::Public as Foo;'
13
+pub use crate::private_module::Public as Foo;
14
+// Glob re-exports with no visible items should not be displayed.
15
+// @count - '//*[@class="item-table"]/li' 1
16
+pub use crate::private_module::*;
0 commit comments