2018-09-26 13:29:26 -05:00
|
|
|
// rustfmt-enum_discrim_align_threshold: 40
|
2018-06-29 01:47:51 -05:00
|
|
|
|
|
|
|
enum Standard {
|
|
|
|
A = 1,
|
|
|
|
Bcdef = 2,
|
|
|
|
}
|
|
|
|
|
2018-09-26 13:29:26 -05:00
|
|
|
enum NoDiscrims {
|
|
|
|
ThisIsAFairlyLongEnumVariantWithoutDiscrimLongerThan40,
|
2018-06-29 01:47:51 -05:00
|
|
|
A = 1,
|
2018-09-26 13:29:26 -05:00
|
|
|
ThisIsAnotherFairlyLongEnumVariantWithoutDiscrimLongerThan40,
|
2018-06-29 01:47:51 -05:00
|
|
|
Bcdef = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum TooLong {
|
2018-09-26 13:29:26 -05:00
|
|
|
ThisOneHasDiscrimAaaaaaaaaaaaaaaaaaaaaaChar40 = 10,
|
|
|
|
A = 1,
|
|
|
|
Bcdef = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Borderline {
|
|
|
|
ThisOneHasDiscrimAaaaaaaaaaaaaaaaaaaaaa = 10,
|
2018-06-29 01:47:51 -05:00
|
|
|
A = 1,
|
|
|
|
Bcdef = 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Live specimen from #1686
|
|
|
|
enum LongWithSmallDiff {
|
|
|
|
SceneColorimetryEstimates = 0x73636F65,
|
|
|
|
SceneAppearanceEstimates = 0x73617065,
|
|
|
|
FocalPlaneColorimetryEstimates = 0x66706365,
|
|
|
|
ReflectionHardcopyOriginalColorimetry = 0x72686F63,
|
|
|
|
ReflectionPrintOutputColorimetry = 0x72706F63,
|
|
|
|
}
|