summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/doc-cfg-implicit-gate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/doc-cfg-implicit-gate.rs')
-rw-r--r--tests/rustdoc/doc-cfg-implicit-gate.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc/doc-cfg-implicit-gate.rs b/tests/rustdoc/doc-cfg-implicit-gate.rs
new file mode 100644
index 000000000..92804d372
--- /dev/null
+++ b/tests/rustdoc/doc-cfg-implicit-gate.rs
@@ -0,0 +1,7 @@
+// compile-flags:--cfg feature="worricow"
+#![crate_name = "xenogenous"]
+
+// @has 'xenogenous/struct.Worricow.html'
+// @count - '//*[@class="stab portability"]' 0
+#[cfg(feature = "worricow")]
+pub struct Worricow;