File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( no_core) ]
2
2
#![ no_core]
3
3
4
+ // @count "$.index[*][?(@.inner.impl)]" 1
4
5
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5
- // @! has "$.index[*][?(@.inner.impl )]"
6
+ // @has "$.index[*][?(@.name == 'NotHiddenPubStruct' )]"
6
7
// @has "$.index[*][?(@.name=='PubTrait')]"
7
8
pub trait PubTrait { }
8
9
9
10
#[ doc( hidden) ]
10
11
pub struct HiddenPubStruct ;
12
+ pub struct NotHiddenPubStruct ;
11
13
12
14
impl PubTrait for HiddenPubStruct { }
15
+ impl PubTrait for NotHiddenPubStruct { }
Original file line number Diff line number Diff line change 1
1
#![ feature( no_core) ]
2
2
#![ no_core]
3
3
4
+ // @count "$.index[*][?(@.inner.impl)]" 1
4
5
// @!has "$.index[*][?(@.name == 'HiddenPubStruct')]"
5
- // @! has "$.index[*][?(@.inner.impl )]"
6
+ // @has "$.index[*][?(@.name == 'NotHiddenPubStruct' )]"
6
7
// @has "$.index[*][?(@.name=='PubTrait')]"
7
8
pub trait PubTrait { }
8
9
@@ -12,3 +13,9 @@ pub mod hidden {
12
13
13
14
impl crate :: PubTrait for HiddenPubStruct { }
14
15
}
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