You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){letmut result = Box::new(42);letmut i = 0;loop{match result {
x => {println!("A>>> {:p}",&*x);println!("A: {:?}", x);
result = Box::new(42);if i > 10{break;}
i += 1;}}}}
fnmain(){letmut result = (Box::new(12),34);// Run in a loop to demonstrate the zeroing:letmut i = 0;while i < 4{match result {
x => {println!("{:p} {}",&*x.0, x.1);
result = (Box::new(12),34);
i += 1;}}}}