mirror of https://github.com/KaiserY/trpl-zh-cn
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							8 lines
						
					
					
						
							310 B
						
					
					
				
			
		
		
	
	
							8 lines
						
					
					
						
							310 B
						
					
					
				$ cargo run
 | 
						|
   Compiling drop-example v0.1.0 (file:///projects/drop-example)
 | 
						|
    Finished dev [unoptimized + debuginfo] target(s) in 0.73s
 | 
						|
     Running `target/debug/drop-example`
 | 
						|
CustomSmartPointer created.
 | 
						|
Dropping CustomSmartPointer with data `some data`!
 | 
						|
CustomSmartPointer dropped before the end of main.
 |