1 #![feature(plugin, non_ascii_idents)]
3 #![deny(clippy, pub_enum_variant_names)]
14 cFoo, //~ ERROR: Variant name ends with the enum's name
20 cFoo, // no error, threshold is 3 variants by default
24 enum Food { //~ ERROR: All variants have the same prefix: `Food`
25 FoodGood, //~ ERROR: Variant name starts with the enum's name
26 FoodMiddle, //~ ERROR: Variant name starts with the enum's name
27 FoodBad, //~ ERROR: Variant name starts with the enum's name
34 enum BadCallType { //~ ERROR: All variants have the same prefix: `CallType`
40 enum TwoCallType { // no error
45 enum Consts { //~ ERROR: All variants have the same prefix: `Constant`
51 enum Two { // no error here
78 enum Seallll { //~ ERROR: All variants have the same prefix: `With`
84 enum NonCaps { //~ ERROR: All variants have the same prefix: `Prefix`
90 pub enum PubSeall { //~ ERROR: All variants have the same prefix:
96 #[allow(pub_enum_variant_names)]