Skip to content

No way to get Box<X> out of a Box<X + Y> #761

@steveklabnik

Description

@steveklabnik

Issue by reem
Sunday Nov 02, 2014 at 02:34 GMT

For earlier discussion, see rust-lang/rust#18524

This issue was labelled with: in the Rust repository


There is currently no way to get a Box<Reader> (or anything else that impls Reader) out of a Box<Reader + Constraint>, for instance Box<Reader + Send>. This is a significant ergonomic problem.

Additionally, Box<Reader + Constraint> should impl Reader since Box<Reader> impls Reader.

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