]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/dst-bad-coerce2.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / dst-bad-coerce2.rs
index 54c625221ba7d0216270ca705c30179ec57b1450..160197368d6d983c673f924eb1508fbd62e1a3b1 100644 (file)
@@ -21,8 +21,8 @@ impl Bar for Foo {}
 pub fn main() {
     // With a vec of ints.
     let f1 = Fat { ptr: [1, 2, 3] };
-    let f2: &Fat<[int; 3]> = &f1;
-    let f3: &mut Fat<[int]> = f2; //~ ERROR mismatched types
+    let f2: &Fat<[isize; 3]> = &f1;
+    let f3: &mut Fat<[isize]> = f2; //~ ERROR mismatched types
 
     // With a trait.
     let f1 = Fat { ptr: Foo };