We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9827f commit c523078Copy full SHA for c523078
src/type-coercions.md
@@ -221,8 +221,9 @@ r[coerce.unsized.composite]
221
* T is not part of the type of any other fields.
222
223
r[coerce.unsized.pointer]
224
-Additionally, a type `Foo<T>` can implement `CoerceUnsized<Foo<U>>` when `T`
225
-implements `Unsize<U>` or `CoerceUnsized<Foo<U>>`. This allows it to provide an
+Additionally, a type `Foo<T>` can implement `CoerceUnsized<Foo<U>>` if there exists
+exactly one non-`PhantomData` field which depends on the changed generic parameter
226
+for which `Field<T>: CoerceUnsized<Field<U>>` holds. This allows it to provide an
227
unsized coercion to `Foo<U>`.
228
229
> [!NOTE]
0 commit comments