about summary refs log tree commit diff
path: root/tests/rustdoc-ui/feature-gate-doc_cfg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/feature-gate-doc_cfg.rs')
-rw-r--r--tests/rustdoc-ui/feature-gate-doc_cfg.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/feature-gate-doc_cfg.rs b/tests/rustdoc-ui/feature-gate-doc_cfg.rs
new file mode 100644
index 00000000000..b474a1524bc
--- /dev/null
+++ b/tests/rustdoc-ui/feature-gate-doc_cfg.rs
@@ -0,0 +1,6 @@
+#![doc(auto_cfg)] //~ ERROR
+#![doc(auto_cfg(false))] //~ ERROR
+#![doc(auto_cfg(true))] //~ ERROR
+#![doc(auto_cfg(hide(feature = "solecism")))] //~ ERROR
+#![doc(auto_cfg(show(feature = "bla")))] //~ ERROR
+#![doc(cfg(feature = "solecism"))] //~ ERROR