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.
cfg(false)
1 parent ce0c17a commit 4655783Copy full SHA for 4655783
tests/rustdoc/cfg-bool.rs
@@ -3,11 +3,14 @@
3
4
// regression test for https://github.com/rust-lang/rust/issues/138112
5
6
+//@ has 'foo/index.html'
7
+//@ has - '//*[@class="stab portability"]/@title' 'Available nowhere'
8
+
9
//@ has 'foo/fn.foo.html' '//div[@class="stab portability"]' 'Available nowhere'
10
#[doc(cfg(false))]
11
pub fn foo() {}
12
-// a cfg(true) will simply be ommited, as it is the same as no cfg.
13
+// a cfg(true) will simply be omited, as it is the same as no cfg.
14
//@ !has 'foo/fn.bar.html' '//div[@class="stab portability"]' ''
15
#[doc(cfg(true))]
16
pub fn bar() {}
0 commit comments