lass='ident'>v</span>;</pre>

<!-- But, if we try to use `v` afterwards, we get an error: -->

<p>しかし、もし後で <code>v</code> を使おうとすると、エラーが出ます。</p>

<span class='rusttest'>fn main() {
    let v = vec![1, 2, 3];

let v2 = v;

println!(&quot;v[0] is: {}&quot;, v[0]);
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>let</span> <span class='ident'>v</span> <span class='op'>=</span> <span class='macro'>vec</span><span class='macro'>!</span>[<span cla