While programming in Rust, we stumble across many rules that, at first, are really unfamiliar to begin with.
However, there's a certain rule that, while programming, I face the most: Multiple Mutable References.
It usually happens when you try to pass a variable into a function as a reader, and then pass that same variable as a writer. C or C++ will happily compile and let you run the code, but Rust throws a massive red error in your face!!!.
In order to understand why this happens, we have to look at how C programmers dealt with it.
Pointers







