]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/integral-indexing.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / integral-indexing.rs
index 897aca66cbfd466705cc089e5a8b42e50d0e68f8..c8f33c3caf8d393963716d57799b2b52258b9946 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 pub fn main() {
-    let v: Vec<isize> = vec!(0, 1, 2, 3, 4, 5);
+    let v: Vec<isize> = vec![0, 1, 2, 3, 4, 5];
     let s: String = "abcdef".to_string();
     v[3_usize];
     v[3];