Skip to content

"Return position impl trait in traits" initiative #13

Open
@nikomatsakis

Description

@nikomatsakis
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

No type

Projects

Status

Experimental

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions