blob: fcb32fd1c76826a10f15ef6358963f2830560a99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
fn start(chan[chan[str]] c) {
let port[str] p = port();
c <| chan(p);
auto a <- p;
// auto b <- p; // Never read the second string.
}
fn main() {
let port[chan[str]] p = port();
auto child = spawn "start" start(chan(p));
auto c <- p;
c <| "A";
c <| "B";
yield;
}
|