]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/slice-mut.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / slice-mut.rs
index 9bd9a752e4e890e0574db32ca22e0975d7871f77..6de1bdd3eab59fd158c6dfa15222fc633230b026 100644 (file)
@@ -11,7 +11,7 @@
 // Test mutability and slicing syntax.
 
 fn main() {
-    let x: &[int] = &[1, 2, 3, 4, 5];
+    let x: &[isize] = &[1, 2, 3, 4, 5];
     // Immutable slices are not mutable.
     let y: &mut[_] = &x[2..4]; //~ ERROR cannot borrow immutable dereference of `&`-pointer as mutab
 }