summary refs log tree commit diff
path: root/src/test/ui/suggestions/closure-immutable-outer-variable.nll.stderr
blob: 335ccefe8a0b12096d3655d1343adf11f9232635 (plain)
1
2
3
4
5
6
7
8
9
error[E0594]: cannot assign to immutable item `y`
  --> $DIR/closure-immutable-outer-variable.rs:21:26
   |
LL |     foo(Box::new(move || y = false) as Box<_>); //~ ERROR cannot assign to captured outer variable
   |                          ^^^^^^^^^ cannot assign

error: aborting due to previous error

For more information about this error, try `rustc --explain E0594`.