FormatStyle.measurement(): can only work for `UnitTemparature`, other type like `UnitMass` do not compile: Why overload not used?

The error message isn't great, but if you look at those two overloads, you can see that the Dimension version requires a width, whereas the temperature defaults to .abbreviated. Whether or not this is intentional is something only Apple can answer.

3 Likes