aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/unchecked_touch.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/unchecked_touch.zc')
-rw-r--r--tests/errors/unchecked_touch.zc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/errors/unchecked_touch.zc b/tests/errors/unchecked_touch.zc
index 141639d..b2e0edf 100644
--- a/tests/errors/unchecked_touch.zc
+++ b/tests/errors/unchecked_touch.zc
@@ -1,2 +1,5 @@
+namespace;
+include rt;
+
// expect: x: is tracked by the analyzer and can't be used in unchecked code
-fn main() { let x = new(1); unchecked { x[0] = 1; } return 0; }
+fn main() { let x = rt.new(1); unchecked { x[0] = 1; } return 0; }