Loading RustViz Engine...
Prove why &mut T is invariant over T to prevent writing short-lived data into long-lived slots.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn overwrite_ref<'a>(slot: &mut &'a str, new_val: &'a str) {
*slot = new_val;
}