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

10 lines
180 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() { }