mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			188 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			188 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct S<T = u8>(T);
 | |
| trait Tr<T = u8> {}
 | |
| 
 | |
| impl Self for S {} //~ ERROR expected trait, found self type `Self`
 | |
| impl Self::N for S {} //~ ERROR cannot find trait `N` in `Self`
 | |
| 
 | |
| fn main() {}
 | 
