summaryrefslogtreecommitdiff
path: root/tests/memory/test_drop.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/memory/test_drop.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/memory/test_drop.zc')
-rw-r--r--tests/memory/test_drop.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/memory/test_drop.zc b/tests/memory/test_drop.zc
index 8b34efe..6b1ccdf 100644
--- a/tests/memory/test_drop.zc
+++ b/tests/memory/test_drop.zc
@@ -1,6 +1,6 @@
import "../../std/mem.zc"
-var DROP_CALLED = 0;
+let DROP_CALLED = 0;
struct MyResource {
id: int;
@@ -15,7 +15,7 @@ impl Drop for MyResource {
test "drop_trait" {
{
- var res = MyResource { id: 1 };
+ let res = MyResource { id: 1 };
// Scope ends here, drop should be called
}