You've already forked comprehensive-rust
							
							
				mirror of
				https://github.com/google/comprehensive-rust.git
				synced 2025-10-31 08:37:45 +02:00 
			
		
		
		
	drop: avoid confusing names (#2648)
The Droppables are already named with letters, so hopefully referencing the nesting order of blocks instead of giving them names is clearer.
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							44a79741ff
						
					
				
				
					commit
					4f8b09009a
				
			| @@ -25,9 +25,9 @@ fn main() { | ||||
|         { | ||||
|             let c = Droppable { name: "c" }; | ||||
|             let d = Droppable { name: "d" }; | ||||
|             println!("Exiting block B"); | ||||
|             println!("Exiting innermost block"); | ||||
|         } | ||||
|         println!("Exiting block A"); | ||||
|         println!("Exiting next block"); | ||||
|     } | ||||
|     drop(a); | ||||
|     println!("Exiting main"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user