1 error[E0387]: cannot borrow data mutably in a captured outer variable in an `Fn` closure
2 --> $DIR/issue-21600.rs:24:17
4 LL | call_it(|| x.gen_mut()); //~ ERROR cannot borrow data mutably in a captured outer
7 help: consider changing this to accept closures that implement `FnMut`
8 --> $DIR/issue-21600.rs:22:13
12 LL | | call_it(|| x.gen());
13 LL | | call_it(|| x.gen_mut()); //~ ERROR cannot borrow data mutably in a captured outer
14 LL | | //~^ ERROR cannot borrow data mutably in a captured outer
18 error[E0387]: cannot borrow data mutably in a captured outer variable in an `Fn` closure
19 --> $DIR/issue-21600.rs:24:20
21 LL | call_it(|| x.gen_mut()); //~ ERROR cannot borrow data mutably in a captured outer
24 help: consider changing this closure to take self by mutable reference
25 --> $DIR/issue-21600.rs:24:17
27 LL | call_it(|| x.gen_mut()); //~ ERROR cannot borrow data mutably in a captured outer
30 error: aborting due to 2 previous errors
32 For more information about this error, try `rustc --explain E0387`.