/src/test/compile-fail/wrong-ret-type.rs

http://github.com/jruderman/rust · Rust · 3 lines · 2 code · 0 blank · 1 comment · 0 complexity · 0daebec5cce0fe10593965e117c60a96 MD5 · raw file

  1. // error-pattern: mismatched types
  2. fn mk_int() -> uint { let i: int = 3; return i; }
  3. fn main() { }