rust/src/test/compile-fail/missing-return2.rs

14 lines
193 B
Rust
Raw Normal View History

// error-pattern: return
fn f() -> int {
// Make sure typestate doesn't interpret this alt expression
// as the function result
alt (true) {
case (true) {
}
}
}
fn main() {
}