mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 03:27:17 +00:00
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