1 error[E0501]: cannot borrow `*a` as mutable because previous closure requires unique access
2 --> $DIR/E0501.rs:14:23
5 | -- closure construction occurs here
7 | - first borrow occurs due to use of `a` in closure
9 LL | outside_closure_1(a);
10 | ^ second borrow occurs here
13 | --- first borrow later used here
15 error[E0501]: cannot borrow `*a` as immutable because previous closure requires unique access
16 --> $DIR/E0501.rs:17:23
19 | -- closure construction occurs here
20 LL | inside_closure(a)
21 | - first borrow occurs due to use of `a` in closure
23 LL | outside_closure_2(a);
24 | ^ second borrow occurs here
27 | --- first borrow later used here
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0501`.