We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ff6763 commit 29ceb41Copy full SHA for 29ceb41
src/test/run-pass/many.rs
@@ -1,24 +1,21 @@
1
-// xfail-stage1
2
-// xfail-stage2
3
-// xfail-stage3
4
// -*- rust -*-
5
6
-fn sub(chan[int] parent, int id) {
+fn sub(parent: chan[int], id: int) {
7
if (id == 0) {
8
parent <| 0;
9
} else {
10
- let port[int] p = port();
11
- auto child = spawn sub(chan(p), id-1);
12
- let int y; p |> y;
+ let p: port[int] = port();
+ let child = spawn sub(chan(p), id-1);
+ let y: int; p |> y;
13
parent <| y + 1;
14
}
15
16
17
fn main() {
18
19
- auto child = spawn sub(chan(p), 500);
20
- let int p |> y;
+ let child = spawn sub(chan(p), 200);
21
log "transmission complete";
22
log y;
23
- assert (y == 500);
+ assert (y == 200);
24
0 commit comments