1 error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
2 --> $DIR/issue-21600.rs:14:20
4 LL | call_it(|| x.gen_mut());
5 | ^ cannot borrow as mutable
7 help: consider changing this to accept closures that implement `FnMut`
8 --> $DIR/issue-21600.rs:14:17
10 LL | call_it(|| x.gen_mut());
13 error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
14 --> $DIR/issue-21600.rs:14:17
16 LL | call_it(|| x.gen_mut());
17 | ^^ - mutable borrow occurs due to use of `x` in closure
19 | cannot borrow as mutable
21 help: consider changing this to accept closures that implement `FnMut`
22 --> $DIR/issue-21600.rs:12:13
26 LL | | call_it(|| x.gen());
27 LL | | call_it(|| x.gen_mut());
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0596`.