]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/region-lifetime-bounds-on-fns-where-clause.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / region-lifetime-bounds-on-fns-where-clause.rs
index 3e6a95b04f743ab8e7a6e56dc48afba0110f5aae..ee05ba676ac7048d76425175a99a16688f82e094 100644 (file)
@@ -8,17 +8,17 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn a<'a, 'b>(x: &mut &'a int, y: &mut &'b int) where 'b: 'a {
+fn a<'a, 'b>(x: &mut &'a isize, y: &mut &'b isize) where 'b: 'a {
     // Note: this is legal because of the `'b:'a` declaration.
     *x = *y;
 }
 
-fn b<'a, 'b>(x: &mut &'a int, y: &mut &'b int) {
+fn b<'a, 'b>(x: &mut &'a isize, y: &mut &'b isize) {
     // Illegal now because there is no `'b:'a` declaration.
     *x = *y; //~ ERROR cannot infer
 }
 
-fn c<'a,'b>(x: &mut &'a int, y: &mut &'b int) {
+fn c<'a,'b>(x: &mut &'a isize, y: &mut &'b isize) {
     // Here we try to call `foo` but do not know that `'a` and `'b` are
     // related as required.
     a(x, y); //~ ERROR cannot infer
@@ -27,13 +27,13 @@ fn c<'a,'b>(x: &mut &'a int, y: &mut &'b int) {
 fn d() {
     // 'a and 'b are early bound in the function `a` because they appear
     // inconstraints:
-    let _: fn(&mut &int, &mut &int) = a; //~ ERROR mismatched types
+    let _: fn(&mut &isize, &mut &isize) = a; //~ ERROR mismatched types
 }
 
 fn e() {
     // 'a and 'b are late bound in the function `b` because there are
     // no constraints:
-    let _: fn(&mut &int, &mut &int) = b;
+    let _: fn(&mut &isize, &mut &isize) = b;
 }
 
 fn main() { }