diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-08-12 19:23:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-12 13:23:54 +0200 |
commit | 4c892231714fb64942b5014df0424de8fb732b73 (patch) | |
tree | 5e03278b044233e86fc097e646653742404db9fd /tests/system/tensuremove.nim | |
parent | f642c9dbf112eb3a6fa993c8f1eee8a454c1c8ac (diff) | |
download | Nim-4c892231714fb64942b5014df0424de8fb732b73.tar.gz |
relax the parameter of `ensureMove`; allow let statements (#22466)
* relax the parameter of `ensureMove`; allow let statements * fixes the test
Diffstat (limited to 'tests/system/tensuremove.nim')
-rw-r--r-- | tests/system/tensuremove.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/system/tensuremove.nim b/tests/system/tensuremove.nim index 980f2ea58..52d9a43a8 100644 --- a/tests/system/tensuremove.nim +++ b/tests/system/tensuremove.nim @@ -20,7 +20,8 @@ block: discard x.s proc main = - var x = X(s: "abcdefg") + let m = "abcdefg" + var x = X(s: ensureMove m) consume(ensureMove x) static: main() |