Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
steveklabnik opened this issue Jan 29, 2015 · 0 comments
Closed

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

steveklabnik opened this issue Jan 29, 2015 · 0 comments

Comments

@steveklabnik
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant