about summary refs log tree commit diff
path: root/src/test/run-fail/issue-2272.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-fail/issue-2272.rs')
-rw-r--r--src/test/run-fail/issue-2272.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/run-fail/issue-2272.rs b/src/test/run-fail/issue-2272.rs
index 9ac5790f2b7..df170023dc4 100644
--- a/src/test/run-fail/issue-2272.rs
+++ b/src/test/run-fail/issue-2272.rs
@@ -13,15 +13,16 @@
 // error-pattern:explicit failure
 // Issue #2272 - unwind this without leaking the unique pointer
 
+use std::gc::{Gc, GC};
 
 struct X { y: Y, a: Box<int> }
 
-struct Y { z: @int }
+struct Y { z: Gc<int> }
 
 fn main() {
     let _x = X {
         y: Y {
-            z: @0
+            z: box(GC) 0
         },
         a: box 0
     };