File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11#![ feature( no_core) ]
22#![ no_core]
33
4+ // @count "$.index[*][?(@.inner.impl)]" 1
45// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5- // @! has "$.index[*][?(@.inner.impl )]"
6+ // @has "$.index[*][?(@.name == 'NotHiddenPubStruct' )]"
67// @has "$.index[*][?(@.name=='PubTrait')]"
78pub trait PubTrait { }
89
910#[ doc( hidden) ]
1011pub struct HiddenPubStruct ;
12+ pub struct NotHiddenPubStruct ;
1113
1214impl PubTrait for HiddenPubStruct { }
15+ impl PubTrait for NotHiddenPubStruct { }
Original file line number Diff line number Diff line change 11#![ feature( no_core) ]
22#![ no_core]
33
4+ // @count "$.index[*][?(@.inner.impl)]" 1
45// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5- // @! has "$.index[*][?(@.inner.impl )]"
6+ // @has "$.index[*][?(@.name == 'NotHiddenPubStruct' )]"
67// @has "$.index[*][?(@.name=='PubTrait')]"
78pub trait PubTrait { }
89
@@ -12,3 +13,9 @@ pub mod hidden {
1213
1314 impl crate :: PubTrait for HiddenPubStruct { }
1415}
16+
17+ pub mod not_hidden {
18+ pub struct NotHiddenPubStruct ;
19+
20+ impl crate :: PubTrait for NotHiddenPubStruct { }
21+ }
You can’t perform that action at this time.
0 commit comments