aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/d_into_block.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/d_into_block.zc')
-rw-r--r--tests/errors/d_into_block.zc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errors/d_into_block.zc b/tests/errors/d_into_block.zc
index 2d7f526..8222674 100644
--- a/tests/errors/d_into_block.zc
+++ b/tests/errors/d_into_block.zc
@@ -1,2 +1,5 @@
+namespace;
+include rt;
+
// expect: x: used after it was given away
-fn main() { let x = new(1); d*x; { x[0] = 5; } return x[0]; }
+fn main() { let x = rt.new(1); d*x; { x[0] = 5; } return x[0]; }