]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #22012: pnkfelix/propagate-container-across-object-cast
authorAlex Crichton <alex@alexcrichton.com>
Tue, 10 Feb 2015 16:41:41 +0000 (08:41 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 10 Feb 2015 16:41:41 +0000 (08:41 -0800)
Given `<expr> as Box<Trait>`, infer that `Box<_>` is expected type for `<expr>`.

This is useful for addressing fallout from newly proposed box protocol; see #22006 for examples of such fallout, much of which will be unnecessary with this fix.


Trivial merge