14 lines
193 B
Rust
14 lines
193 B
Rust
|
// 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() {
|
||
|
}
|