// Test static calls to make sure that we align the Self and input // type parameters on a trait correctly. trait Tr : Sized { fn op(_: T) -> Self; } trait A: Tr { fn test(u: U) -> Self { Tr::op(u) //~ ERROR E0277 } } trait B: Tr { fn test(u: U) -> Self { Tr::op(u) //~ ERROR E0277 } } fn main() { }