generated from rust-lang/initiative-template
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
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?
spastorino, rwestphal, JSDurand, p--b, sirgl and 5 more
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Experimental