Skip to content

Commit 18c64ff

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
}
8+

0 commit comments

Comments
 (0)