3 // From https://github.com/rust-lang/rust/issues/54121/
5 // Whether the code compiled depended on the order of the trait bounds in
6 // `type T: Tr<u8, u8> + Tr<u16, u16>`
7 // But both should compile as order shouldn't matter.
14 // This compiled successfully
15 type T: Tr<u16, u16> + Tr<u8, u8>;
19 // This didn't compile
20 type T: Tr<u8, u8> + Tr<u16, u16>;
25 <S as P>::T::exec(0u8, 0u8)
30 // A mismatched types error was emitted on this line.
31 <S as Q>::T::exec(0u8, 0u8)
34 // Another reproduction of the same issue
36 type Type: Into<Self::Type1> + Into<Self::Type2> + Copy;
42 fn foo<T: Trait>(x: T::Type) {
43 let _1: T::Type1 = x.into();
44 let _2: T::Type2 = x.into();