title: type name `int` is undefined or not in scope
body: <p>What does this mean?</p>
  
  <pre><code>error: type name `int` is undefined or not in scope
  </code></pre>
  
  <p>I am trying to compile this <a href="http://kukuruku.co/hub/rust/comparing-rust-and-cpp" rel="nofollow">example</a>:</p>
  
  <pre><code>fn minval(A: &amp;[int]) -&gt; int {
    A.iter().fold(A[0], |u,&amp;a| {
      if a&lt;u {a} else {u}
    })
  }
  
  fn main() {
      let A = [1i,2i,3i];
      let min = minval(A.as_slice());
      println!("{}", min);
  }
  </code></pre>