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 06a6dcd commit 9119ebaCopy full SHA for 9119eba
tests/rustdoc/doc-auto-cfg-public-in-private.rs
@@ -0,0 +1,16 @@
1
+// This test ensures that even though private items are removed from generated docs,
2
+// their `cfg`s will still impact their child items.
3
+
4
+#![feature(doc_cfg)]
5
+#![crate_name = "foo"]
6
7
+pub struct X;
8
9
+#[cfg(not(feature = "blob"))]
10
+fn foo() {
11
+ impl X {
12
+ //@ has 'foo/struct.X.html'
13
+ //@ has - '//*[@class="stab portability"]' 'Available on non-crate feature blob only.'
14
+ pub fn bar() {}
15
+ }
16
+}
0 commit comments