summary refs log tree commit diff stats
path: root/tests/system/tensuremove2.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-12 19:23:54 +0800
committerGitHub <noreply@github.com>2023-08-12 13:23:54 +0200
commit4c892231714fb64942b5014df0424de8fb732b73 (patch)
tree5e03278b044233e86fc097e646653742404db9fd /tests/system/tensuremove2.nim
parentf642c9dbf112eb3a6fa993c8f1eee8a454c1c8ac (diff)
downloadNim-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/tensuremove2.nim')
-rw-r--r--tests/system/tensuremove2.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/system/tensuremove2.nim b/tests/system/tensuremove2.nim
index 1fcbc1c0f..39bbeb22e 100644
--- a/tests/system/tensuremove2.nim
+++ b/tests/system/tensuremove2.nim
@@ -1,5 +1,5 @@
 discard """
-  errormsg: "'if true: s else: String()' is not a mutable location; it cannot be moved"
+  errormsg: "Nested expressions cannot be moved: 'if true: s else: String()'"
 """
 
 type