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 8b1c71d commit 139d32aCopy full SHA for 139d32a
tests/rustdoc/doc-hidden-source.rs
@@ -0,0 +1,16 @@
1
+// Test for <https://github.com/rust-lang/rust/issues/137342>.
2
+
3
+#![crate_name = "foo"]
4
5
+//@ has 'foo/index.html'
6
+//@ !has - '//*[@id="main-content"]//*[@class="struct"]' 'Bar'
7
+#[doc(hidden)]
8
+pub struct Bar;
9
10
+//@ !has - '//*' 'pub use crate::Bar as A;'
11
+pub use crate::Bar as A;
12
+//@ !has - '//*' 'pub use crate::A as B;'
13
+pub use crate::A as B;
14
+//@ has - '//dt/a[@class="struct"]' 'C'
15
+#[doc(inline)]
16
+pub use crate::Bar as C;
0 commit comments