Fix vec test compile error.
This commit is contained in:
parent
6f2e50caea
commit
27e82b60b0
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#[miri_run]
|
#[miri_run]
|
||||||
fn make_vec() -> Vec<i32> {
|
fn make_vec() -> Vec<i32> {
|
||||||
let v = Vec::with_capacity(4);
|
let mut v = Vec::with_capacity(4);
|
||||||
v.push(1);
|
v.push(1);
|
||||||
v.push(2);
|
v.push(2);
|
||||||
v
|
v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue