File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,8 @@ phantom_lifetime! {
131
131
///
132
132
/// [1]: https://doc.rust-lang.org/stable/reference/subtyping.html#variance
133
133
///
134
+ /// Note: If `'a` is otherwise contravariant or invariant, the resulting type is invariant.
135
+ ///
134
136
/// ## Layout
135
137
///
136
138
/// For all `'a`, the following are guaranteed:
@@ -146,6 +148,8 @@ phantom_lifetime! {
146
148
///
147
149
/// [1]: https://doc.rust-lang.org/stable/reference/subtyping.html#variance
148
150
///
151
+ /// Note: If `'a` is otherwise covariant or invariant, the resulting type is invariant.
152
+ ///
149
153
/// ## Layout
150
154
///
151
155
/// For all `'a`, the following are guaranteed:
@@ -180,6 +184,8 @@ phantom_type! {
180
184
///
181
185
/// [1]: https://doc.rust-lang.org/stable/reference/subtyping.html#variance
182
186
///
187
+ /// Note: If `T` is otherwise contravariant or invariant, the resulting type is invariant.
188
+ ///
183
189
/// ## Layout
184
190
///
185
191
/// For all `T`, the following are guaranteed:
@@ -196,6 +202,8 @@ phantom_type! {
196
202
///
197
203
/// [1]: https://doc.rust-lang.org/stable/reference/subtyping.html#variance
198
204
///
205
+ /// Note: If `T` is otherwise covariant or invariant, the resulting type is invariant.
206
+ ///
199
207
/// ## Layout
200
208
///
201
209
/// For all `T`, the following are guaranteed:
You can’t perform that action at this time.
0 commit comments