mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-29 20:15:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // build-pass (FIXME(62277): could be check-pass?)
 | |
| #![allow(unused)]
 | |
| 
 | |
| struct S;
 | |
| 
 | |
| impl S {
 | |
|     fn early_and_type<'a, T>(self) -> &'a T { loop {} }
 | |
| }
 | |
| 
 | |
| fn test() {
 | |
|     S.early_and_type::<u16>();
 | |
| }
 | |
| 
 | |
| 
 | |
| fn main() {}
 | 
