10 lines
217 B
Rust
10 lines
217 B
Rust
// error-pattern: not all control paths return a value
|
|
|
|
fn f() -> int {
|
|
// Make sure typestate doesn't interpret this alt expression
|
|
// as the function result
|
|
alt check true { true { } };
|
|
}
|
|
|
|
fn main() { }
|