rust/src/test/compile-fail/liveness-missing-ret2.rs
2012-08-06 15:36:30 -07:00

10 lines
227 B
Rust

// error-pattern: not all control paths return a value
fn f() -> int {
// Make sure typestate doesn't interpreturn this match expression
// as the function result
match check true { true => { } };
}
fn main() { }