@@ -9,7 +9,7 @@ pub struct PubStruct {
9
9
10
10
// @has 'toggle_item_contents/struct.BigPubStruct.html'
11
11
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
12
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show fields'
12
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 13 fields'
13
13
pub struct BigPubStruct {
14
14
pub a : usize ,
15
15
pub b : usize ,
@@ -28,7 +28,7 @@ pub struct BigPubStruct {
28
28
29
29
// @has 'toggle_item_contents/union.BigUnion.html'
30
30
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
31
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show fields'
31
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 13 fields'
32
32
pub union BigUnion {
33
33
pub a : usize ,
34
34
pub b : usize ,
@@ -63,7 +63,7 @@ pub struct PrivStruct {
63
63
64
64
// @has 'toggle_item_contents/enum.Enum.html'
65
65
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
66
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show fields'
66
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 2 fields'
67
67
pub enum Enum {
68
68
A , B , C ,
69
69
D {
@@ -72,9 +72,19 @@ pub enum Enum {
72
72
}
73
73
}
74
74
75
+ // @has 'toggle_item_contents/enum.EnumStructVariant.html'
76
+ // @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
77
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 1 field'
78
+ pub enum EnumStructVariant {
79
+ A , B , C ,
80
+ D {
81
+ a : u8 ,
82
+ }
83
+ }
84
+
75
85
// @has 'toggle_item_contents/enum.LargeEnum.html'
76
86
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
77
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show variants'
87
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 13 variants'
78
88
pub enum LargeEnum {
79
89
A , B , C , D , E , F ( u8 ) , G , H , I , J , K , L , M
80
90
}
@@ -90,7 +100,7 @@ pub trait Trait {
90
100
91
101
// @has 'toggle_item_contents/trait.GinormousTrait.html'
92
102
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
93
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show associated items'
103
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 16 associated items'
94
104
pub trait GinormousTrait {
95
105
type A ;
96
106
type B ;
@@ -113,7 +123,7 @@ pub trait GinormousTrait {
113
123
114
124
// @has 'toggle_item_contents/trait.HugeTrait.html'
115
125
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
116
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show associated constants and methods'
126
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 12 associated constants and 2 methods'
117
127
pub trait HugeTrait {
118
128
type A ;
119
129
const M : usize = 1 ;
@@ -133,9 +143,30 @@ pub trait HugeTrait {
133
143
fn bar ( ) ;
134
144
}
135
145
146
+ // @has 'toggle_item_contents/trait.GiganticTrait.html'
147
+ // @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
148
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 1 associated constant and 1 method'
149
+ pub trait GiganticTrait {
150
+ type A ;
151
+ type B ;
152
+ type C ;
153
+ type D ;
154
+ type E ;
155
+ type F ;
156
+ type G ;
157
+ type H ;
158
+ type I ;
159
+ type J ;
160
+ type K ;
161
+ type L ;
162
+ const M : usize = 1 ;
163
+ #[ must_use]
164
+ fn foo ( ) ;
165
+ }
166
+
136
167
// @has 'toggle_item_contents/trait.BigTrait.html'
137
168
// @count - '//details[@class="rustdoc-toggle type-contents-toggle"]' 1
138
- // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show methods'
169
+ // @has - '//details[@class="rustdoc-toggle type-contents-toggle"]' 'Show 14 methods'
139
170
pub trait BigTrait {
140
171
type A ;
141
172
#[ must_use]
0 commit comments