Files
rust/tests/ui/structs/multiple-inherent-impl-blocks.rs
2026-07-15 23:38:07 +02:00

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();
}