rust/src/test/compile-fail/issue-897.rs
2012-08-01 19:16:06 -07:00

6 lines
131 B
Rust

fn f() -> ! {
return 42i; //~ ERROR expected `_|_` but found `int`
fail; //~ WARNING unreachable statement
}
fn main() { }