aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/eval-fail-remove.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/eval-fail-remove.err.exp')
-rw-r--r--tests/lang/eval-fail-remove.err.exp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lang/eval-fail-remove.err.exp b/tests/lang/eval-fail-remove.err.exp
new file mode 100644
index 000000000..e82cdac98
--- /dev/null
+++ b/tests/lang/eval-fail-remove.err.exp
@@ -0,0 +1,19 @@
+error:
+ … while evaluating the attribute 'body'
+
+ at /pwd/lang/eval-fail-remove.nix:4:3:
+
+ 3|
+ 4| body = (removeAttrs attrs ["x"]).x;
+ | ^
+ 5| }
+
+ error: attribute 'x' missing
+
+ at /pwd/lang/eval-fail-remove.nix:4:10:
+
+ 3|
+ 4| body = (removeAttrs attrs ["x"]).x;
+ | ^
+ 5| }
+ Did you mean y?