n main() {
    fn foo() {
    let v = vec![1, 2, 3];
}
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>fn</span> <span class='ident'>foo</span>() {
    <span class='kw'>let</span> <span class='ident'>v</span> <span class='op'>=</span> <span class='macro'>vec</span><span class='macro'>!</span>[<span class='number'>1</span>, <span class='number'>2</span>, <span class='number'>3</span>];
}</pre>

<!-- When `v` comes into scope, a new [`Vec<T>`][vect] is created. In this case, the -->

<!-- ve