1 2 3 4 5 6 7 8
struct Foo; impl Foo { const bar: bool = true; fn bar() {} //~ ERROR duplicate definitions } fn main() {}