2014-10-09 14:17:22 -05:00
|
|
|
fn my_err(s: String) -> ! { println!("{}", s); panic!(); }
|
2011-05-20 21:53:50 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
fn okay(i: usize) -> isize {
|
2015-03-03 02:42:26 -06:00
|
|
|
if i == 3 {
|
2014-05-25 05:17:19 -05:00
|
|
|
my_err("I don't like three".to_string());
|
2014-05-12 19:56:43 -05:00
|
|
|
} else {
|
|
|
|
return 42;
|
|
|
|
}
|
2011-05-20 21:53:50 -05:00
|
|
|
}
|
|
|
|
|
2015-03-03 02:42:26 -06:00
|
|
|
pub fn main() { okay(4); }
|