-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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> #18524
Comments
Is this not a more generic case of #15906? |
Oops, yes it is. I had forgotten I filed that issue. |
A fun variant of this; cannot dereferrence
|
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized. This issue has been moved to the RFCs repo: rust-lang/rfcs#761 |
@steveklabnik I disagree that this is not just a bug, and think it should remain an issue here and not in the rfcs repo. There is no need to change the language for this - it's just a matter of implementation. |
A clarifying comment on IRC:
|
Triage: no changes that I'm aware of. |
I just ran into this issue with Arnavion points out on IRC that this seems to be working now for Box, though:
|
Not sure what was meant by Option, since |
…ap-return internal: Migrate `(un)wrap_return_type` assists to use `SyntaxEditor`
There is currently no way to get a
Box<Reader>
(or anything else that implsReader
) out of aBox<Reader + Constraint>
, for instanceBox<Reader + Send>
. This is a significant ergonomic problem.Additionally,
Box<Reader + Constraint>
should implReader
sinceBox<Reader>
implsReader
.The text was updated successfully, but these errors were encountered: