You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>`[/-][+]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>` ?[/+]on Feb 12, 2015
changed the title [-]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>` ?[/-][+]could type inference fill in the `_` in `expr as Box<_>` when expecting `Box<Trait>` ?[/+]on Feb 16, 2015
Per discussion on IRC with @aturon I'm going to close. It doesn't seem helpful to track this, since in almost all or all cases, inferring the trait would likely lead to surprising behavior, and so we probably don't want to do this anyway.
Activity
[-]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>`[/-][+]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>` ?[/+]pnkfelix commentedon Feb 12, 2015
cc #22181
box
andin
expressions (tracking issue for RFC 809) #22181[-]could type inference fill in `expr as Box<_>` when expecting `Box<Trait>` ?[/-][+]could type inference fill in the `_` in `expr as Box<_>` when expecting `Box<Trait>` ?[/+]steveklabnik commentedon May 24, 2016
Triage: box stuff is still up for debate.
Mark-Simulacrum commentedon May 4, 2017
I'm not quite sure how to triage this, since this doesn't compile at all today. Perhaps this should be closed until
as Box<_>
becomes possible?Mark-Simulacrum commentedon Jun 22, 2017
Per discussion on IRC with @aturon I'm going to close. It doesn't seem helpful to track this, since in almost all or all cases, inferring the trait would likely lead to surprising behavior, and so we probably don't want to do this anyway.