Fix an ICE when implementing Drop on enums

Fixes #13041.