aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/use_after_inferred_give.zc
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 09:48:10 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 09:48:10 +0330
commit0a87c4663fc52bf60f3d440200b3b3ad6b39bd3e (patch)
tree40d88acb972080ed90d89c7a866247263c252cae /tests/errors/use_after_inferred_give.zc
parentmerge work/stdio: std.Io and one-level module completion (diff)
analyzer: use-after-end messages name the borrower, the owner and how the owner ended (freed, moved, .d parameter, push, global, reassignment), with fixtures
Diffstat (limited to 'tests/errors/use_after_inferred_give.zc')
-rw-r--r--tests/errors/use_after_inferred_give.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/errors/use_after_inferred_give.zc b/tests/errors/use_after_inferred_give.zc
index 19841cb..e393c29 100644
--- a/tests/errors/use_after_inferred_give.zc
+++ b/tests/errors/use_after_inferred_give.zc
@@ -1,6 +1,6 @@
namespace;
include rt;
-// expect: x: used after it was given away; owner x was transferred on line 6 (declared on line 6)
+// expect: x: used after it was given away; x was given to take's .d parameter on line 6 (declared on line 6)
fn take(.d p) { return p[0]; }
fn main() { let x = rt.new(3); take(x); return x[0]; }