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