АМ
Size: a a a
АМ
G
unwrap
found for enum std::result::Result<F, <F as std::str::FromStr>::Err>
in the current scopeIB
unwrap
found for enum std::result::Result<F, <F as std::str::FromStr>::Err>
in the current scopeG
IB
M
cannot borrow `*a
as mutable more than once at a time`M
АМ
M
M
M
a.test(a.test(1));
let res = a.test(1);
a.test(res);
АМ
a.test(a.test(1));
a.test({ // first mutable borrowСобственно, в детальном описании ошибки об этом и сказано )
a.test(1) // second mutable borrow
}); // first borrow later used by call
АМ
A::test(&mut a, A::test(&mut a, 1));
АМ
A
A