code>new()</code>:</p>
<span class='rusttest'>fn main() {
    let v: Vec&lt;i32&gt; = Vec::new();
    
}</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='ident'>Vec</span>::<span class='ident'>new</span>();</pre>

<p>...or by using the <code>vec!</code> macro:</p>
<span class='rusttest'>fn main() {
