Skip to content

Overloaded function error not caught with multiple impls #35763

Closed
@nrc

Description

@nrc

E.g.,

struct Type;

impl Type {
  fn a(_x: (), _y: ()) -> () {
  }
}
impl Type {
  fn a(_x: ()) -> () {
  }
}

fn main() {
}

Putting the two as into the same impl gives the expected error.

From rust-lang/rfcs#1614

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