]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/impl-unused-tps.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / impl-unused-tps.rs
index 99c6c6b89858c3700b2862ee4b68442bad90198a..c9399afbb93b2a998d29e6cac491d9dfc6fb32ed 100644 (file)
@@ -16,19 +16,19 @@ trait Bar {
     type Out;
 }
 
-impl<T> Foo<T> for [int;0] {
+impl<T> Foo<T> for [isize;0] {
     // OK, T is used in `Foo<T>`.
 }
 
-impl<T,U> Foo<T> for [int;1] {
+impl<T,U> Foo<T> for [isize;1] {
     //~^ ERROR the type parameter `U` is not constrained
 }
 
-impl<T,U> Foo<T> for [int;2] where T : Bar<Out=U> {
+impl<T,U> Foo<T> for [isize;2] where T : Bar<Out=U> {
     // OK, `U` is now constrained by the output type parameter.
 }
 
-impl<T:Bar<Out=U>,U> Foo<T> for [int;3] {
+impl<T:Bar<Out=U>,U> Foo<T> for [isize;3] {
     // OK, same as above but written differently.
 }