mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			251 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			251 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| 
 | |
| // This didn't work in the previous default RPITIT method hack attempt
 | |
| 
 | |
| 
 | |
| trait Foo {
 | |
|     fn bar(x: bool) -> impl Sized {
 | |
|         if x {
 | |
|             let _: u32 = Self::bar(!x);
 | |
|         }
 | |
|         Default::default()
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
