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.zc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/errors/d_into_block.zc b/tests/errors/d_into_block.zc
new file mode 100644
index 0000000..2d7f526
--- /dev/null
+++ b/tests/errors/d_into_block.zc
@@ -0,0 +1,2 @@
+// expect: x: used after it was given away
+fn main() { let x = new(1); d*x; { x[0] = 5; } return x[0]; }