/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
- // error-pattern: mismatched types
- fn mk_int() -> uint { let i: int = 3; return i; }
- fn main() { }