Loading RustViz Engine...
Identify why Rc<T> and *mut T are !Send and !Sync, and how Arc<Mutex<T>> restores safety.
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.
// Proof test function enforcing Send + Sync
pub fn assert_send_sync<T: Send + Sync>() {}
pub fn verify() {
assert_send_sync::<std::sync::Arc<std::sync::Mutex<i32>>>();
// assert_send_sync::<std::rc::Rc<i32>>(); // Compiler error!
}