2017-02-07 20:05:30 +00:00
|
|
|
error: Variant name ends with the enum's name
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:24:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
24 | cFoo,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:35:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
35 | FoodGood,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:36:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
36 | FoodMiddle,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:37:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
37 | FoodBad,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: All variants have the same prefix: `Food`
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:34:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
34 | / enum Food {
|
|
|
|
35 | | FoodGood,
|
|
|
|
36 | | FoodMiddle,
|
|
|
|
37 | | FoodBad,
|
|
|
|
38 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00: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-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:44:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
44 | / enum BadCallType {
|
|
|
|
45 | | CallTypeCall,
|
|
|
|
46 | | CallTypeCreate,
|
|
|
|
47 | | CallTypeDestroy,
|
|
|
|
48 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00: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-12-10 05:27:19 +00:00
|
|
|
--> $DIR/enum_variants.rs:56:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
56 | / enum Consts {
|
|
|
|
57 | | ConstantInt,
|
|
|
|
58 | | ConstantCake,
|
|
|
|
59 | | ConstantLie,
|
|
|
|
60 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00: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 16:18:06 +00:00
|
|
|
--> $DIR/enum_variants.rs:90:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
90 | / enum Seallll {
|
|
|
|
91 | | WithOutCake,
|
|
|
|
92 | | WithOutTea,
|
|
|
|
93 | | WithOut,
|
|
|
|
94 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00: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 16:18:06 +00: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 20:05:30 +00:00
|
|
|
|
|
|
|
error: All variants have the same prefix: `With`
|
2018-10-06 16:18:06 +00: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 20:05:30 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|