Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2016 21:11
Show Gist options
  • Save anonymous/14e76c90eacd2e5eda0fbac4b9a0e674 to your computer and use it in GitHub Desktop.
Save anonymous/14e76c90eacd2e5eda0fbac4b9a0e674 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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