-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority
Description
When creating a trait object, I shouldn't have to write &mut obj as &mut Trait
, I should be able to just write &mut obj
and the compiler will coerce it to &mut Trait
.
I remember awhile ago that @pcwalton had a patch to do this, but then it fell by the wayside. I was under the impression that we want to get this done, so I'm nominating this for 1.0.
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority