mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	 9946d67579
			
		
	
	
		9946d67579
		
	
	
	
	
		
			
			This enhances generics with the "unboxing" behavior where A<T> matches T. It makes this unboxing transitive over generics.
		
			
				
	
	
		
			6 lines
		
	
	
		
			101 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			101 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub struct Object<T, U>(T, U);
 | |
| 
 | |
| pub fn something() -> Result<Object<i32, u32>, bool> {
 | |
|     loop {}
 | |
| }
 |