Fix ICE with erroneous impl Trait
in a trait impl
#50227
+12
−2
Merged