Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo(u8);
- impl Drop for Foo {
- fn drop(&mut self) {
- println!("Dropped");
- }
- }
- fn main() {
- let Foo(_) = Foo(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement