doc.rust-lang.org
References and Borrowing - The Rust Programming Language
The Rust compiler prevents data races and dangling pointers at compile time by enforcing that references cannot mutate borrowed data, that multiple mutable references to the same value cannot coexist, and that references must always be valid.