Created
June 12, 2016 21:11
-
-
Save anonymous/14e76c90eacd2e5eda0fbac4b9a0e674 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct A; | |
impl Drop for A { | |
fn drop(&mut self) { | |
println!("dropping A"); | |
} | |
} | |
fn main() { | |
let _ = A; | |
panic!("how did this happen!"); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment