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

11 lines
181 B
Rust
Raw Normal View History

// error-pattern: return
fn f() -> int {
2011-07-27 07:19:39 -05:00
// Make sure typestate doesn't interpret this alt expression
// as the function result
alt true { true { } }
}
2011-07-27 07:19:39 -05:00
fn main() { }