Skip to content

std::ptr::Unique requires T to be sized #22140

Closed

Description

std::ptr::Unique requires it's type parameter T to be sized. That means, for example, that it is not possible to use Unique to send a "*mut[i32]" to a thread, as [i32] is not sized. kimundi suggested on IRC that probably, the "?Sized" has simply been forgotten here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions