Skip to content

methods in trait impls should override default methods #18446

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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