title: How do I initialize an array of vectors?
body: <p>I would like to create an array of vectors:</p>
  <pre><code>fn main() {
      let v: [Vec&lt;u8&gt;; 10] = [Vec::new(); 10];
  }
  </code></pre>
  <p>However, the compiler gives me this error:</p>
  <pre class="lang-none prettyprint-override"><code>error[E0277]: the trait bound `std::vec::Vec&lt;u8&gt;: std::marker::Copy` is not satisfied
   --&gt; src/main.rs:2:28
    |
  2 |     let v: [Vec&lt;u8&gt;; 10] = [Vec::new(); 10];
    |                            ^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::vec::Vec&lt;u8&gt;`
    |
    = note: the `Copy` trait is required because the repeated element will be copied
  </code></pre>