aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/leak_overwrite.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/leak_overwrite.zc')
-rw-r--r--tests/errors/leak_overwrite.zc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errors/leak_overwrite.zc b/tests/errors/leak_overwrite.zc
index d19b5fd..50fecfa 100644
--- a/tests/errors/leak_overwrite.zc
+++ b/tests/errors/leak_overwrite.zc
@@ -1,2 +1,5 @@
+namespace;
+include rt;
+
// expect: x: still owns an object
-fn main() { let x = new(1); x = new(2); return x[0]; }
+fn main() { let x = rt.new(1); x = rt.new(2); return x[0]; }