]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/lint-impl-fn.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / lint-impl-fn.rs
index eaef43a90836d992f4783b73d22a320ae453018f..608aec327b63ac4ddf3f4d6e31910ac249070199 100644 (file)
@@ -11,7 +11,7 @@
 #![allow(while_true)]
 #![allow(dead_code)]
 
-struct A(int);
+struct A(isize);
 
 impl A {
     fn foo(&self) { while true {} }
@@ -22,7 +22,7 @@ fn bar(&self) { while true {} } //~ ERROR: infinite loops
 
 #[deny(while_true)]
 mod foo {
-    struct B(int);
+    struct B(isize);
 
     impl B {
         fn foo(&self) { while true {} } //~ ERROR: infinite loops