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