Fix ICE with erroneous impl Trait in a trait impl
#50227
Merged
impl Trait in a trait impl
#50227