1 error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
5 | -- borrow of `e.0.0.m.x` occurs here
6 LL | e.0.0.m.x = format!("not-x");
7 | --------- borrow occurs due to use in closure
9 LL | e.0.0.m.x = format!("not-x");
10 | ^^^^^^^^^ assignment to borrowed `e.0.0.m.x` occurs here
13 | - borrow later used here
15 error[E0502]: cannot borrow `e.0.0.m.x` as immutable because it is also borrowed as mutable
19 | -- mutable borrow occurs here
20 LL | e.0.0.m.x = format!("not-x");
21 | --------- first borrow occurs due to use of `e.0.0.m.x` in closure
23 LL | println!("{}", e.0.0.m.x);
24 | ^^^^^^^^^ immutable borrow occurs here
27 | - mutable borrow later used here
29 error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
33 | -- borrow of `e.0.0.m.x` occurs here
34 LL | println!("{}", e.0.0.m.x);
35 | --------- borrow occurs due to use in closure
37 LL | e.0.0.m.x = format!("not-x");
38 | ^^^^^^^^^ assignment to borrowed `e.0.0.m.x` occurs here
41 | - borrow later used here
43 error: aborting due to 3 previous errors
45 Some errors have detailed explanations: E0502, E0506.
46 For more information about an error, try `rustc --explain E0502`.