2012-01-12 22:17:21 -08:00
|
|
|
// error-pattern:whatever
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
log(error, "whatever");
|
|
|
|
task::spawn {||
|
|
|
|
resource r(_i: ()) {
|
|
|
|
// Setting the exit status after the runtime has already
|
|
|
|
// failed has no effect and the process exits with the
|
|
|
|
// runtime's exit code
|
2012-04-19 01:26:17 -07:00
|
|
|
os::set_exit_status(50);
|
2012-01-12 22:17:21 -08:00
|
|
|
}
|
|
|
|
let i = r(());
|
|
|
|
};
|
|
|
|
fail;
|
|
|
|
}
|