I am a beginner and rust and I can't fix the issue no matter what I try.
This is the error:
use of moved value: `current_node`
value used here after moverustc(E0382)
closest_value_bst.rs(24, 28): value moved here
closest_value_bst.rs(15, 9): move occurs because `current_node` has type `std::option::Option<std::boxed::Box<basic::closest_value_bst::BST>>`,
which does not implement the `Copy` trait
I tried references as well but I end up having even more errors..
What would be a standard way of solving these issues?