about summary refs log tree commit diff
path: root/src/test/run-pass/expr-match-box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-match-box.rs')
-rw-r--r--src/test/run-pass/expr-match-box.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass/expr-match-box.rs b/src/test/run-pass/expr-match-box.rs
index 457d3e8d986..98218829d34 100644
--- a/src/test/run-pass/expr-match-box.rs
+++ b/src/test/run-pass/expr-match-box.rs
@@ -10,9 +10,11 @@
 
 #![feature(managed_boxes)]
 
+use std::gc::GC;
+
 // Tests for match as expressions resulting in boxed types
 fn test_box() {
-    let res = match true { true => { @100 } _ => fail!("wat") };
+    let res = match true { true => { box(GC) 100 } _ => fail!("wat") };
     assert_eq!(*res, 100);
 }