rust/tests/ui/associated-item/impl-duplicate-methods.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
152 B
Rust
Raw Normal View History

struct Foo;
impl Foo {
fn orange(&self) {}
2016-08-05 15:57:37 +00:00
fn orange(&self) {}
//~^ ERROR duplicate definitions with name `orange` [E0592]
}
fn main() {}