Skip to content

methods in trait impls should override default methods #18446

Closed
@nrc

Description

@nrc

E.g.,

trait T {
    fn foo(&self) {}
}

impl<'a> T+'a {
    fn foo(&self) {}
}

Should be OK. (It currently gives "duplicate definition of value foo").

Follow up to #17750

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions