Skip to content

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

Closed
@RalfJung

Description

@RalfJung

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.

Metadata

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