1 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
2 --> $DIR/borrowck-closures-mut-of-imm.rs:23:21
4 LL | let c1 = || set(&mut *x);
5 | ^^^^^^^ cannot borrow as mutable
7 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
8 --> $DIR/borrowck-closures-mut-of-imm.rs:25:21
10 LL | let c2 = || set(&mut *x);
11 | ^^^^^^^ cannot borrow as mutable
13 error: aborting due to 2 previous errors
15 For more information about this error, try `rustc --explain E0596`.