blob: 5d973d2a9e39cea906da53c174f73348767cb6eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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
sys::set_exit_status(50);
}
let i = r(());
};
fail;
}
|