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 10:57:37 -05:00
fn orange(&self) {}
//~^ ERROR duplicate definitions with name `orange` [E0592]
}
fn main() {}