Multiple Immutable Borrows

Overview

Rust allows multiple immutable references to the same value at the same time, because read-only access does not create conflicting mutations.

This enables safe shared access while still enforcing strict rules around mutation.

Official Rust Book: References and Borrowing


Code example