blob: 314921cdfb7530b68d1362e4a86527c7c5f631c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// error-pattern:goodfail
use std;
import task;
import comm;
fn goodfail(&&_i: ()) {
task::yield();
fail "goodfail";
}
fn main() {
task::spawn((), goodfail);
let po = comm::port();
// We shouldn't be able to get past this recv since there's no
// message available
let i: int = comm::recv(po);
fail "badfail";
}
|