about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doc-cfg.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-26 16:03:12 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-27 11:29:50 +0200
commit77885fef2cd9a7f9daa4f95336f0cfdeb62b3016 (patch)
tree65d6fa476ea49bafef412323035fb7b0e8f11906 /tests/rustdoc-ui/doc-cfg.rs
parentef8b2a26caccba46584e4753c3091218d4a2e17d (diff)
downloadrust-77885fef2cd9a7f9daa4f95336f0cfdeb62b3016.tar.gz
rust-77885fef2cd9a7f9daa4f95336f0cfdeb62b3016.zip
Improve code comments and extend tests for `doc_cfg` feature
Diffstat (limited to 'tests/rustdoc-ui/doc-cfg.rs')
-rw-r--r--tests/rustdoc-ui/doc-cfg.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doc-cfg.rs b/tests/rustdoc-ui/doc-cfg.rs
index 9840c305290..d72643e2355 100644
--- a/tests/rustdoc-ui/doc-cfg.rs
+++ b/tests/rustdoc-ui/doc-cfg.rs
@@ -13,6 +13,8 @@
 #[doc(auto_cfg(hide(42)))] //~ ERROR
 #[doc(auto_cfg(hide("a")))] //~ ERROR
 #[doc(auto_cfg(hide(foo::bar)))] //~ ERROR
+#[doc(auto_cfg = 42)] //~ ERROR
+#[doc(auto_cfg = "a")] //~ ERROR
 // Shouldn't lint
 #[doc(auto_cfg(hide(windows)))]
 #[doc(auto_cfg(hide(feature = "windows")))]