summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-item/impl-duplicate-methods.rs
blob: 328d54d5ac41188e8e7d1f0e7eb455d4d302c8d7 (plain)
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() {}