mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
18 lines
279 B
Rust
18 lines
279 B
Rust
//! 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();
|
|
}
|