/src/test/compile-fail/output-type-mismatch.rs

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

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