You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, a type Foo<T> can implement CoerceUnsized<Foo<U>> when T implements Unsize<U> or CoerceUnsized<Foo<U>>. This allows it to provide a unsized coercion to Foo<U>.
However, the document of CoerceUnsized regarding the corresponding case says:
you can directly implement CoerceUnsized<Wrap<U>> for Wrap<T> where T: CoerceUnsized<U>
The text was updated successfully, but these errors were encountered:
https://doc.rust-lang.org/reference/type-coercions.html#unsized-coercions
However, the document of
CoerceUnsized
regarding the corresponding case says:The text was updated successfully, but these errors were encountered: