]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-item/associated-item-duplicate-names-2.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[rust.git] / tests / ui / associated-item / associated-item-duplicate-names-2.rs
1 struct Foo;
2
3 impl Foo {
4     const bar: bool = true;
5     fn bar() {} //~ ERROR duplicate definitions
6 }
7
8 fn main() {}