]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/method-ambig-one-trait-unknown-int-type.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / method-ambig-one-trait-unknown-int-type.rs
index e211db2dcd2967de9ed64ead385b5f2e46e1496a..f0cc7c80417e06c67958ad2db874457cb210e152 100644 (file)
 // of what kind of `Vec` we have, eventually leading to a type error.
 
 trait foo {
-    fn foo(&self) -> int;
+    fn foo(&self) -> isize;
 }
 
 impl foo for Vec<uint> {
-    fn foo(&self) -> int {1}
+    fn foo(&self) -> isize {1}
 }
 
-impl foo for Vec<int> {
-    fn foo(&self) -> int {2}
+impl foo for Vec<isize> {
+    fn foo(&self) -> isize {2}
 }
 
 // This is very hokey: we have heuristics to suppress messages about