Skip to content

DST: trait objects should automatically implement the trait #19187

Closed
@aturon

Description

@aturon

This is a planned part of DST. Example from RFC:

fn foo<Sized? T: SomeTrait>(y: &T) { ... }

fn bar(x: &SomeTrait) {
    foo(x)
}

should be permitted even if there is no explicit impl of SomeTrait for &SomeTrait.

Metadata

Metadata

Assignees

Labels

A-DSTsArea: Dynamically-sized types (DSTs)A-trait-systemArea: Trait system

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions