summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-duplicate-methods.rs
blob: adb09d7f56e93dd9c106fbc1361b3d8de0e41429 (plain)
1
2
3
4
5
6
7
8
9
struct Foo;

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

fn main() {}