blob: 4b559e093fff2224d55ba0ff77852fa9dca3ee5e [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/4228>.
//! This used to emit `duplicate definition of type` error.
//@ run-pass
struct Foo;
impl Foo {
fn first() {}
}
impl Foo {
fn second() {}
}
pub fn main() {
Foo::first();
Foo::second();
}