2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-20 21:53:50 -05:00
|
|
|
// -*- rust -*-
|
2012-07-14 00:57:48 -05:00
|
|
|
fn my_err(s: ~str) -> ! { log(error, s); fail; }
|
2011-05-20 21:53:50 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn okay(i: uint) -> int {
|
2012-08-01 19:30:05 -05:00
|
|
|
if i == 3u { my_err(~"I don't like three"); } else { return 42; }
|
2011-05-20 21:53:50 -05:00
|
|
|
}
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { okay(4u); }
|