diff --git a/src/test/compile-fail/type-params-in-different-spaces-2.rs b/src/test/compile-fail/type-params-in-different-spaces-2.rs index d1bbda932cb7..9be64bf53467 100644 --- a/src/test/compile-fail/type-params-in-different-spaces-2.rs +++ b/src/test/compile-fail/type-params-in-different-spaces-2.rs @@ -8,28 +8,25 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// Test static calls to make sure that we align the Self and input +// type parameters on a trait correctly. + trait Tr { fn op(T) -> Self; } -// these compile as if Self: Tr, even tho only Self: Tr trait A: Tr { fn test(u: U) -> Self { Tr::op(u) //~ ERROR not implemented } } + trait B: Tr { fn test(u: U) -> Self { Tr::op(u) //~ ERROR not implemented } } -impl Tr for T { - fn op(t: T) -> T { t } -} -impl A for T {} - fn main() { - std::io::println(A::test((&7306634593706211700, 8))); }