2011-06-10 19:27:34 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
// error-pattern:explicit failure
|
2011-06-10 19:27:34 -05:00
|
|
|
fn f() -> ! { fail }
|
|
|
|
|
|
|
|
fn g() -> int {
|
2011-06-15 13:19:50 -05:00
|
|
|
auto x = alt (true) { case (true) { f() } case (false) { 10 } };
|
|
|
|
ret x;
|
2011-06-10 19:27:34 -05:00
|
|
|
}
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { g(); }
|