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

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

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