2011-09-13 15:50:03 +02:00
|
|
|
// error-pattern: not all control paths return a value
|
2011-05-31 15:24:18 -04:00
|
|
|
|
|
|
|
fn f() -> int {
|
2011-07-27 14:19:39 +02:00
|
|
|
// Make sure typestate doesn't interpret this alt expression
|
|
|
|
// as the function result
|
2011-12-29 12:03:39 -08:00
|
|
|
alt true { true { } };
|
2011-05-31 15:24:18 -04:00
|
|
|
}
|
2011-07-27 14:19:39 +02:00
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { }
|