about summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2063-resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/issue-2063-resource.rs')
-rw-r--r--src/test/compile-fail/issue-2063-resource.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/issue-2063-resource.rs b/src/test/compile-fail/issue-2063-resource.rs
index d34fb10e9dd..9e365acc5ab 100644
--- a/src/test/compile-fail/issue-2063-resource.rs
+++ b/src/test/compile-fail/issue-2063-resource.rs
@@ -10,6 +10,8 @@
 
 #![feature(managed_boxes)]
 
+use std::gc::Gc;
+
 // test that autoderef of a type like this does not
 // cause compiler to loop.  Note that no instances
 // of such a type could ever be constructed.
@@ -18,7 +20,7 @@ struct t { //~ ERROR this type cannot be instantiated
   to_str: (),
 }
 
-struct x(@t); //~ ERROR this type cannot be instantiated
+struct x(Gc<t>); //~ ERROR this type cannot be instantiated
 
 fn main() {
 }