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
Not sure if I should categorize this as a bug since this seems to be something that was overlooked. core::ptr::NonNull has the function pub const fn cast<U>(self) -> NonNull<U> that, as far as I can tell, should allow for U: ?Sized. Am I missing something here?
The text was updated successfully, but these errors were encountered:
I see that #60602 actually explains the reasoning. It would be nice then to have a cast_sliced function that casts NonNull<[T]> to NonNull<[U]>. But since that is a feature request, I think I'll close it here for now.
Not sure if I should categorize this as a bug since this seems to be something that was overlooked.
core::ptr::NonNull
has the functionpub const fn cast<U>(self) -> NonNull<U>
that, as far as I can tell, should allow forU: ?Sized
. Am I missing something here?The text was updated successfully, but these errors were encountered: