1 error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
5 | -- `e.0.0.m.x` is borrowed 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 | ^^^^^^^^^ `e.0.0.m.x` is assigned to here but it was already borrowed
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 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
31 error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
35 | -- `e.0.0.m.x` is borrowed here
36 LL | println!("{}", e.0.0.m.x);
37 | --------- borrow occurs due to use in closure
39 LL | e.0.0.m.x = format!("not-x");
40 | ^^^^^^^^^ `e.0.0.m.x` is assigned to here but it was already borrowed
43 | - borrow later used here
45 error: aborting due to 3 previous errors
47 Some errors have detailed explanations: E0502, E0506.
48 For more information about an error, try `rustc --explain E0502`.