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