blob: 1e703bc47f93e431a9d514f7bfec56aa89c64ade (
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() {
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";
}
|