2017-02-07 14:05:30 -06:00
|
|
|
error: Variant name ends with the enum's name
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:26:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
26 | cFoo,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:37:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
37 | FoodGood,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:38:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
38 | FoodMiddle,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:39:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
39 | FoodBad,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `Food`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:36:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
36 | / enum Food {
|
|
|
|
37 | | FoodGood,
|
|
|
|
38 | | FoodMiddle,
|
|
|
|
39 | | FoodBad,
|
|
|
|
40 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `CallType`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:46:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
46 | / enum BadCallType {
|
|
|
|
47 | | CallTypeCall,
|
|
|
|
48 | | CallTypeCreate,
|
|
|
|
49 | | CallTypeDestroy,
|
|
|
|
50 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `Constant`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:57:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
57 | / enum Consts {
|
|
|
|
58 | | ConstantInt,
|
|
|
|
59 | | ConstantCake,
|
|
|
|
60 | | ConstantLie,
|
|
|
|
61 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `With`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:90:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
90 | / enum Seallll {
|
|
|
|
91 | | WithOutCake,
|
|
|
|
92 | | WithOutTea,
|
|
|
|
93 | | WithOut,
|
|
|
|
94 | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `Prefix`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:96:1
|
|
|
|
|
|
|
|
|
96 | / enum NonCaps {
|
|
|
|
97 | | Prefix的,
|
|
|
|
98 | | PrefixTea,
|
|
|
|
99 | | PrefixCake,
|
|
|
|
100 | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: All variants have the same prefix: `With`
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/enum_variants.rs:102:1
|
|
|
|
|
|
|
|
|
102 | / pub enum PubSeall {
|
|
|
|
103 | | WithOutCake,
|
|
|
|
104 | | WithOutTea,
|
|
|
|
105 | | WithOut,
|
|
|
|
106 | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|