First, a hug u ginormously (HUG) to the Rust documentation that mentions the compiler as your guide not your adversary to writing safe and smart code.
From https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#variables-and-mutability
This example shows how the compiler helps you find errors in your programs. Even though compiler errors can be frustrating, they only mean your program isn’t safely doing what you want it to do yet; they do not mean that you’re not a good programmer! Experienced Rustaceans still get compiler errors.