rust/src/test/ui/error-codes/E0034.rs
2018-12-25 21:08:33 -07:00

21 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
}