blob: 54d8de63014e20d4807ed72e2e0cc61f60a9dd4c (
plain)
1
2
3
4
5
6
7
8
9
|
// 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() { }
|