aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/obj-dtor.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-02 11:11:58 -0700
committerGraydon Hoare <[email protected]>2010-11-02 11:11:58 -0700
commitda13c508d83032ca13679e1e122e96d25ac23283 (patch)
tree51c3d466dfedf3ad8e21b56c4769325561b3d650 /src/test/run-pass/obj-dtor.rs
parentUn-XFAIL self tests on Darwin (diff)
downloadrust-da13c508d83032ca13679e1e122e96d25ac23283.tar.xz
rust-da13c508d83032ca13679e1e122e96d25ac23283.zip
First pass on splitting stratum and opacity off of effects. WIP.
Diffstat (limited to 'src/test/run-pass/obj-dtor.rs')
-rw-r--r--src/test/run-pass/obj-dtor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/obj-dtor.rs b/src/test/run-pass/obj-dtor.rs
index 8b79047b..d1f54f8f 100644
--- a/src/test/run-pass/obj-dtor.rs
+++ b/src/test/run-pass/obj-dtor.rs
@@ -5,7 +5,7 @@ obj worker(chan[int] c) {
}
}
-io fn do_work(chan[int] c) {
+impure fn do_work(chan[int] c) {
log "in child task";
{
let worker w = worker(c);
@@ -20,7 +20,7 @@ io fn do_work(chan[int] c) {
}
}
-io fn main() {
+impure fn main() {
let port[int] p = port();
log "spawning worker";
auto w = spawn do_work(chan(p));