/src/test/compile-fail/fn-bad-block-type.rs

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

  1. // error-pattern:mismatched types
  2. fn f() -> int { true }
  3. fn main() { }