Skip to content

Allow trait methods to return impl Trait types. #65481

Closed
@kevincox

Description

@kevincox

It should be possible for methods in traits to have a return value specified as impl Trait. This would allow traits to return values without having to specify the exact type or wrap in indirection.

This would obviously not be object-safe as the size of the return value would not be known.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions