1 error[E0387]: cannot assign to data in a captured outer variable in an `Fn` closure
2 --> $DIR/unboxed-closures-mutated-upvar-from-fn-closure.rs:24:9
7 help: consider changing this closure to take self by mutable reference
8 --> $DIR/unboxed-closures-mutated-upvar-from-fn-closure.rs:23:10
13 LL | | //[ast]~^ ERROR cannot assign to data in a captured outer variable in an `Fn` closure
14 LL | | //[mir]~^^ ERROR cannot assign to `counter`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0387`.