2011-06-11 00:27:34 +00:00
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
// error-pattern:explicit failure
|
2011-06-11 00:27:34 +00:00
|
|
|
fn f() -> ! { fail }
|
|
|
|
|
2012-08-01 17:30:05 -07:00
|
|
|
fn g() -> int { let x = if true { f() } else { 10 }; return x; }
|
2011-06-11 00:27:34 +00:00
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { g(); }
|