ctor also allocates space on [the heap][heap], for the three elements. When -->

<!-- `v` goes out of scope at the end of `foo()`, Rust will clean up everything -->

<!-- related to the vector, even the heap-allocated memory. This happens -->

<!-- deterministically, at the end of the scope. -->

<p><code>v</code> がスコープに入るとき、新しい <a href="../std/vec/struct.Vec.html"><code>Vec&lt;T&gt;</code></a> が作られます。
この場合、ベクタも3つの要素のために <a href="th