rust/tests/ui/error-codes/E0034.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
237 B
Rust
Raw Normal View History

2016-05-17 08:01:31 -05:00
struct Test;
trait Trait1 {
fn foo();
}
trait Trait2 {
fn foo();
}
impl Trait1 for Test {
fn foo() {}
}
impl Trait2 for Test {
fn foo() {}
}
2016-05-17 08:01:31 -05:00
fn main() {
Test::foo() //~ ERROR multiple applicable items in scope
2016-05-17 08:01:31 -05:00
}