rust/tests/ui/issues/issue-4265.rs
2023-01-11 09:32:08 +00:00

15 lines
165 B
Rust

struct Foo {
baz: usize
}
impl Foo {
fn bar() {
Foo { baz: 0 }.bar();
}
fn bar() { //~ ERROR duplicate definitions
}
}
fn main() {}