mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 9ffe558455
			
		
	
	
		9ffe558455
		
			
		
	
	
	
	
		
			
			Properly report error when object type param default references self
I accidentally broke this error for cases where a type parameter references `Self` via a projection (i.e. `trait Foo<Arg = Self::Bar> {}`). This PR fixes that, and also makes the error a bit easier to understand.
Fixes #135918
		
	
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.