rust/tests/ui/associated-item/associated-item-duplicate-n...

9 lines
116 B
Rust

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