2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-05-20 21:53:50 -05:00
|
|
|
// -*- rust -*-
|
2011-06-15 13:19:50 -05:00
|
|
|
fn my_err(str s) -> ! { log_err s; fail; }
|
2011-05-20 21:53:50 -05:00
|
|
|
|
|
|
|
fn okay(uint i) -> int {
|
2011-06-15 13:19:50 -05:00
|
|
|
if (i == 3u) { my_err("I don't like three"); } else { ret 42; }
|
2011-05-20 21:53:50 -05:00
|
|
|
}
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { okay(4u); }
|