summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-item/associated-item-duplicate-names-2.rs
blob: 550c7ae394b455322efb1452c9db62f770fb3955 (plain)
1
2
3
4
5
6
7
8
struct Foo;

impl Foo {
    const bar: bool = true;
    fn bar() {} //~ ERROR duplicate definitions
}

fn main() {}