Here is a specific example. I have a record type with floating point fields and I would like to be able to compare instances of this type for equality but of course the default compiler-generated implementation of structural equality and comparison doesn't account for floating point imprecision, so you can get false positives and negatives in your comparisons.
In my application I have lots of records with many floating point fields each. What would be nice is if I could slap a "digits of precision" attribute on my floating point fields or on the whole record, to tell the compiler to compare floating point values for equality using that many digits of precision. I could override Equals, GetHashCode, and IComparable.CompareTo but it is quite a lot of typing and a heavy maintenance burden.
I guess the other option is a code generator tool to spit out all these overrides for me.