blob: 218d2eefeaff7fa2e4ae37809e8c9fa9d9223da8 [file] [log] [blame]
trait Sup {
fn method(&self) {}
}
trait Trait: Sup {
fn method(&self) {}
}
impl Sup for i32 {}
impl Trait for i32 {}
fn poly<T: Trait>(x: T) {
x.method();
//~^ ERROR multiple applicable items in scope
}
fn concrete() {
1.method();
//~^ ERROR multiple applicable items in scope
}
fn main() {}