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

overloaded-box and placement-in #809

Merged
merged 11 commits into from
Feb 11, 2015
Merged
Prev Previous commit
Next Next commit
add new drawback based on observing inference weakness for Box<Trait>.
pnkfelix committed Feb 5, 2015
commit c081b9381fa87e84df9e134b6cd1447c4db38bec
6 changes: 6 additions & 0 deletions text/0000-box-and-in-for-stdlib.md
Original file line number Diff line number Diff line change
@@ -120,6 +120,12 @@ tandem with types provided by the stdlib, such as `Box<T>`.
nightly release channel, which will not have the same stability
restrictions.

* The currently-implemented desugaring does not infer that in an
expression like `box <expr> as Box<Trait>`, the use of `box <expr>`
should evaluate to some `Box<_>`. This may be due to a weakness
in the current desugaring, though pnkfelix suspects that it is
probably due to a weakness in compiler itself.

# Alternatives

* We could keep the `box (<place-expr>) <expr>` syntax. It is hard