blob: 047b7bffd9bae81480082d62220fb5edcfa9a2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// error-pattern:goodfail
extern mod std;
fn goodfail() {
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";
}
|