]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/vec-mut-iter-borrow.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / vec-mut-iter-borrow.rs
index 023ef72c453bb5a2d9580ccc5e84b4e84074000e..571634e3992619074b1060170c4fc4a1d2c37025 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn main() {
-    let mut xs: Vec<isize> = vec!();
+    let mut xs: Vec<isize> = vec![];
 
     for x in &mut xs {
         xs.push(1) //~ ERROR cannot borrow `xs`