mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
22 lines
237 B
Rust
22 lines
237 B
Rust
struct Test;
|
|
|
|
trait Trait1 {
|
|
fn foo();
|
|
}
|
|
|
|
trait Trait2 {
|
|
fn foo();
|
|
}
|
|
|
|
impl Trait1 for Test {
|
|
fn foo() {}
|
|
}
|
|
|
|
impl Trait2 for Test {
|
|
fn foo() {}
|
|
}
|
|
|
|
fn main() {
|
|
Test::foo() //~ ERROR multiple applicable items in scope
|
|
}
|