diff options
| author | Graydon Hoare <[email protected]> | 2010-11-02 11:11:58 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-02 11:11:58 -0700 |
| commit | da13c508d83032ca13679e1e122e96d25ac23283 (patch) | |
| tree | 51c3d466dfedf3ad8e21b56c4769325561b3d650 /src/test/run-pass/basic-2.rs | |
| parent | Un-XFAIL self tests on Darwin (diff) | |
| download | rust-da13c508d83032ca13679e1e122e96d25ac23283.tar.xz rust-da13c508d83032ca13679e1e122e96d25ac23283.zip | |
First pass on splitting stratum and opacity off of effects. WIP.
Diffstat (limited to 'src/test/run-pass/basic-2.rs')
| -rw-r--r-- | src/test/run-pass/basic-2.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/basic-2.rs b/src/test/run-pass/basic-2.rs index 975a0d4b..d2b2e240 100644 --- a/src/test/run-pass/basic-2.rs +++ b/src/test/run-pass/basic-2.rs @@ -1,12 +1,12 @@ // -*- rust -*- -io fn a(chan[int] c) { +impure fn a(chan[int] c) { log "task a0"; log "task a1"; c <| 10; } -io fn main() { +impure fn main() { let port[int] p = port(); spawn a(chan(p)); spawn b(chan(p)); @@ -16,7 +16,7 @@ io fn main() { log "Finished."; } -io fn b(chan[int] c) { +impure fn b(chan[int] c) { log "task b0"; log "task b1"; log "task b2"; |