fix broken assertion in type_param Nested generics (aka method generics) in trait methods don't have an *additional* Self parameter in their own type parameter list (they have a Self parameter in the parent generics), so don't try to check we're correctly adjusting for it. Fixes #46568. r? @eddyb |
||
|---|---|---|
| .. | ||
| borrowck-let-suggestion.rs | ||
| borrowck-let-suggestion.stderr | ||
| lifetime-doesnt-live-long-enough.rs | ||
| lifetime-doesnt-live-long-enough.stderr | ||