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