Loading RustViz Engine...
Observe how the compiler enforces compile-time reader/writer locks and computes Non-Lexical Lifetime live ranges across control flow branches.
Observe how the compiler verifies reader/writer exclusion and non-lexical lifetime scopes.
let mut data = vec![10, 20];When an immutable reference is active, the original value is read-locked (frozen). Neither the owner nor any other part of the program can mutate it until all shared loans expire.
Borrows do not need to last until the closing curly brace }. NLL tracks the exact Control Flow Graph (CFG) line where the reference is last accessed.