rust/tests/ui/associated-item/associated-item-duplicate-names-2.rs
2023-01-11 09:32:08 +00:00

9 lines
116 B
Rust

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