Open
Description
Metadata | |
---|---|
Name | "Return position impl trait in traits" initiative |
Owner | @tmandry |
Liaison | @nikomatsakis |
Implementation | @spastorino |
Purpose
Defining and stabilizing impl Trait in return position in a trait or trait impl:
trait Foo {
fn bar(&self) -> impl Clone;
}
See the explainer for more details.
Active questions
- How can users name these types?
- If
impl Trait
is used in a trait definition, must it be used in an impl? What does it mean if it is not?
Metadata
Metadata
Assignees
Type
Projects
Status
Experimental