diff options
Diffstat (limited to 'tests/memory/test_drop.zc')
| -rw-r--r-- | tests/memory/test_drop.zc | 4 |
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 } |
