1 // Check that we get an error in a multidisptach scenario where the
2 // set of impls is ambiguous.
4 trait Convert<Target> {
5 fn convert(&self) -> Target;
8 impl Convert<i8> for i32 {
9 fn convert(&self) -> i8 {
14 impl Convert<i16> for i32 {
15 fn convert(&self) -> i16 {
20 fn test<T,U>(_: T, _: U)
26 test(22, std::default::Default::default());
27 //~^ ERROR type annotations needed [E0282]