about summary refs log tree commit diff
path: root/src/test/run-pass/unwind-resource2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/unwind-resource2.rs')
-rw-r--r--src/test/run-pass/unwind-resource2.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/run-pass/unwind-resource2.rs b/src/test/run-pass/unwind-resource2.rs
index 85c4975b671..b1669dea7b2 100644
--- a/src/test/run-pass/unwind-resource2.rs
+++ b/src/test/run-pass/unwind-resource2.rs
@@ -11,9 +11,10 @@
 #![feature(managed_boxes)]
 
 use std::task;
+use std::gc::{Gc, GC};
 
 struct complainer {
-  c: @int,
+  c: Gc<int>,
 }
 
 #[unsafe_destructor]
@@ -21,14 +22,14 @@ impl Drop for complainer {
     fn drop(&mut self) {}
 }
 
-fn complainer(c: @int) -> complainer {
+fn complainer(c: Gc<int>) -> complainer {
     complainer {
         c: c
     }
 }
 
 fn f() {
-    let _c = complainer(@0);
+    let _c = complainer(box(GC) 0);
     fail!();
 }