STM32 - How does analog configuration of MCU pins affect the power usage?
According to the reference manual:

This apparently can reduce the typical current draw from uA to nA. It's not clear if they make assumptions about whether the pins are tied high, low or floating for these comparisons.