    let v: Vec&lt;i32&gt; = vec![];
    
    let v = vec![1, 2, 3, 4, 5];
    
    let v = vec![0; 10]; // ten zeroes
    
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>let</span> <span class='ident'>v</span>: <span class='ident'>Vec</span><span class='op'>&lt;</span><span class='ident'>i32</span><span class='op'>&gt;</span> <span class='op'>=</span> <span class='macro'>vec</span><span class='macro'>!</span>[];

<span class='kw'>let</span> <span class='ident'>v</span> <span class='op'>=<