2 // Tests that everything still compiles and runs fine even when
3 // we reorder the bounds.
15 fn combine<T:A+B>(&self, t: &T) -> usize;
21 fn a(&self) -> usize { 1 }
25 fn b(&self) -> usize { 2 }
31 // Note below: bounds in impl decl are in reverse order.
32 fn combine<T:B+A>(&self, t: &T) -> usize {
37 fn use_c<S:C, T:B+A>(s: &S, t: &T) -> usize {
44 let r = use_c(&bar, &foo);