title: Rust - Vector with size defined at runtime
body: <p>How do you create an array, in rust, whose size is defined at run time?</p>
  
  <p>Basically, how do you convert in rust the following code:</p>
  
  <pre><code>void f(int n){ return std::vector&lt;int&gt;(n); }
  </code></pre>
  
  <p>?</p>
  
  <p>This is not possible in rust:</p>
  
  <pre><code>let n = 15;
  let board: [int, ..n];
  </code></pre>
  
  <p>Note: I saw that it was impossible to do this in a simple manner, <a href="https://stackoverflow.com/questions/16745907/rust-creating-a-vector-with-non-constant-length">here</a>, but I refuse to accept that such a simple thing is impossible :p</p>
  
  <p>Thanks a lot!</p>