1 2 3 4 5 6 7 8 9
struct Foo; impl Foo { fn orange(&self) {} fn orange(&self) {} //~^ ERROR duplicate definitions with name `orange` [E0592] } fn main() {}