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 }
|
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn g() -> int { let x = if true { f() } else { 10 }; return x; }
|
2011-06-10 19:27:34 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { g(); }
|