What does this output? struct Print(u32); impl Drop for Print { fn drop(&mut self) { println!("{}", self.0); } } fn main() { let t = (Print(31), Print(32)); let (ref x, ref y) = (Print(21), Print(22)); let (x, y) = (Print(11), Print(12)); }
-
-
Doesn’t ultimately have anything to do with drop order.
-
Oh duh now that I see the output it makes more sense
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.