]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/impl-duplicate-methods.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / associated-item / impl-duplicate-methods.rs
1 struct Foo;
2
3 impl Foo {
4     fn orange(&self) {}
5     fn orange(&self) {}
6     //~^ ERROR duplicate definitions with name `orange` [E0592]
7 }
8
9 fn main() {}