about summary refs log tree commit diff
path: root/src/test/ui/closures/closure-immutable-outer-variable.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/closures/closure-immutable-outer-variable.stderr')
-rw-r--r--src/test/ui/closures/closure-immutable-outer-variable.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/closures/closure-immutable-outer-variable.stderr b/src/test/ui/closures/closure-immutable-outer-variable.stderr
index 7e60f3cd8ff..799097889cd 100644
--- a/src/test/ui/closures/closure-immutable-outer-variable.stderr
+++ b/src/test/ui/closures/closure-immutable-outer-variable.stderr
@@ -3,8 +3,8 @@ error[E0594]: cannot assign to `y`, as it is not declared as mutable
    |
 LL |     let y = true;
    |         - help: consider changing this to be mutable: `mut y`
-LL |     foo(Box::new(move || y = false) as Box<_>);
-   |                          ^^^^^^^^^ cannot assign
+LL |     foo(Box::new(move || y = !y) as Box<_>);
+   |                          ^^^^^^ cannot assign
 
 error: aborting due to previous error