Trench foot is an injury that occurs when feet are exposed to cold and wet conditions, but it is not due to freezing (as in frostbite). It is one of three types of immersion foot, with the other two types being warm water immersion foot and tropical immersion foot.
Source: Verywell Health