Skip to content

Commit d38a2c9

Browse files
Add rustdoc-json test for doc_cfg
1 parent 37c3177 commit d38a2c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/rustdoc-json/doc_cfg.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![feature(doc_cfg)]
2+
3+
//@ is "$.index[?(@.name=='f')].attrs" '[{"other": "#[doc(auto_cfg(hide(bar, values(none())), hide(blob, values(\"a\", \"14\"))))]"}]'
4+
#[doc(auto_cfg(hide(bar, values(none())), hide(blob, values("a", "14")),))]
5+
pub fn f() {}

0 commit comments

Comments
 (0)