Skip to content

Ability to pass ownership of unsized types #990

Open
@nikomatsakis

Description

@nikomatsakis

Currently you can't use unsized types as parameters or return values. There are good reasons to support this, including passing closures to fns and being able to write things like Rc::new(*slice) where slice has type Box<[T]> or what have you.

Postponed RFCs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions