Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::fmt::Debug;
- #[derive(Debug, Clone)]
- struct StructA;
- impl Drop for StructA {
- fn drop(&mut self) {
- println!("Dropping.!")
- }
- }
- fn main() {
- let _a = StructA{};
- println!("Ending Scope.?");
- /* ... 'a' can be borrowed here ... */
- let _a = StructA{};
- }
Add Comment
Please, Sign In to add comment