Skip to content

NonNull cast should allow ?Sized #91115

Closed
@adsnaider

Description

@adsnaider

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions