aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/u_dropped.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/u_dropped.zc')
-rw-r--r--tests/errors/u_dropped.zc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errors/u_dropped.zc b/tests/errors/u_dropped.zc
index e1ca68a..90ccc3f 100644
--- a/tests/errors/u_dropped.zc
+++ b/tests/errors/u_dropped.zc
@@ -1,2 +1,5 @@
+namespace;
+include rt;
+
// expect: x: u object must leave this block
-fn main() { let x = new(3); u*x; return 0; }
+fn main() { let x = rt.new(3); u*x; return 0; }