Fix ICE by disallowing impl Trait
in unsupported position
#49830
+74
−17
impl Trait
in unsupported position
#49830