Skip to content

Commit 1ca7cb1

Browse files
Add rustdoc-json test to check new Attribute type
1 parent 49b7d1d commit 1ca7cb1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![no_std]
2+
3+
//@ is "$.index[?(@.name=='foo')].attrs" '[{"content": "#[allow(unused)]", "is_inner": false}, {"content": "#[allow(dead_code)]", "is_inner": true}]'
4+
#[allow(unused)]
5+
pub mod foo {
6+
#![allow(dead_code)]
7+
}

0 commit comments

Comments
 (0)