]> git.lizzy.rs Git - rust.git/commitdiff
Fix vec test compile error.
authorScott Olson <scott@solson.me>
Mon, 21 Mar 2016 08:41:07 +0000 (02:41 -0600)
committerScott Olson <scott@solson.me>
Mon, 21 Mar 2016 08:41:07 +0000 (02:41 -0600)
test/vecs.rs

index e3cb67b1ada4b191c77fc95c50350976f9a9c5b0..2fb113b3da208af1e6fb4bf57e01eb142746fd51 100755 (executable)
@@ -3,7 +3,7 @@
 
 #[miri_run]
 fn make_vec() -> Vec<i32> {
-    let v = Vec::with_capacity(4);
+    let mut v = Vec::with_capacity(4);
     v.push(1);
     v.push(2);
     v