An attempt was made to move a value out of a borrowed reference. Borrowing grants temporary access but not ownership, so the value cannot be moved elsewhere while it is borrowed.
E0507
rust An attempt was made to move a value out of a borrowed reference. Borrowing grants temporary access but not ownership, so the value cannot be moved elsewhere while it is borrowed.