rust/src/test/ui/impl-duplicate-methods.rs

10 lines
124 B
Rust

struct Foo;
impl Foo {
fn orange(&self) {}
fn orange(&self) {}
//~^ ERROR duplicate definition
}
fn main() {}