Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. struct Foo(u8);
  2.  
  3. impl Drop for Foo {
  4. fn drop(&mut self) {
  5. println!("Dropped");
  6. }
  7. }
  8.  
  9. fn main() {
  10. let Foo(_) = Foo(0);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement