title: How to set a Rust array length dynamically?
body: <p>I want to create array like this:</p>
  
  <pre><code>let arr = [0; length];
  </code></pre>
  
  <p>Where length is a <code>usize</code>. But I get this error</p>
  
  <pre class="lang-none prettyprint-override"><code>E0307
  The length of an array is part of its type. For this reason, this length 
  must be a compile-time constant.
  </code></pre>
  
  <p>Is it possible to create array with dynamic length? I want an array, not a <code>Vec</code>.</p>