mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			241 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			241 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub struct Out<A, B = ()> {
 | |
|     a: A,
 | |
|     b: B,
 | |
| }
 | |
| 
 | |
| pub struct First<In = ()> {
 | |
|     in_: In,
 | |
| }
 | |
| 
 | |
| pub struct Second;
 | |
| 
 | |
| // Out<First<Second>>
 | |
| pub fn alef() -> Out<First<Second>> {
 | |
|     loop {}
 | |
| }
 | |
| 
 | |
| pub fn bet() -> Out<First, Second> {
 | |
|     loop {}
 | |
| }
 | 
