// Check that we get an error in a multidisptach scenario where the // set of impls is ambiguous. trait Convert { fn convert(&self) -> Target; } impl Convert for i32 { fn convert(&self) -> i8 { *self as i8 } } impl Convert for i32 { fn convert(&self) -> i16 { *self as i16 } } fn test(_: T, _: U) where T : Convert { } fn a() { test(22, std::default::Default::default()); //~^ ERROR type annotations needed //~| ERROR type annotations needed } fn main() {}