Avoid ICEs in trait names without dyn
#119752
+553
−11
Merged
dyn
#119752