rust/tests/source/configs/enum_discrim_align_threshold/40.rs

34 lines
790 B
Rust
Raw Normal View History

// rustfmt-enum_discrim_align_threshold: 40
enum Standard {
A = 1,
Bcdef = 2,
}
enum NoDiscrims {
ThisIsAFairlyLongEnumVariantWithoutDiscrimLongerThan40,
A = 1,
ThisIsAnotherFairlyLongEnumVariantWithoutDiscrimLongerThan40,
Bcdef = 2,
}
enum TooLong {
ThisOneHasDiscrimAaaaaaaaaaaaaaaaaaaaaaChar40 = 10,
A = 1,
Bcdef = 2,
}
enum Borderline {
ThisOneHasDiscrimAaaaaaaaaaaaaaaaaaaaaa = 10,
A = 1,
Bcdef = 2,
}
// Live specimen from #1686
enum LongWithSmallDiff {
SceneColorimetryEstimates = 0x73636F65,
SceneAppearanceEstimates = 0x73617065,
FocalPlaneColorimetryEstimates = 0x66706365,
ReflectionHardcopyOriginalColorimetry = 0x72686F63,
ReflectionPrintOutputColorimetry = 0x72706F63,
}