2017-02-07 20:05:30 +00:00
|
|
|
error: Variant name ends with the enum's name
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:14:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
14 | cFoo,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:25:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
25 | FoodGood,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:26:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
26 | FoodMiddle,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: Variant name starts with the enum's name
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:27:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
27 | FoodBad,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: All variants have the same prefix: `Food`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:24:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
24 | / enum Food {
|
2017-02-08 13:58:07 +00:00
|
|
|
25 | | FoodGood,
|
|
|
|
26 | | FoodMiddle,
|
|
|
|
27 | | FoodBad,
|
2017-02-07 20:05:30 +00:00
|
|
|
28 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
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`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:34:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
34 | / enum BadCallType {
|
2017-02-07 20:05:30 +00:00
|
|
|
35 | | CallTypeCall,
|
|
|
|
36 | | CallTypeCreate,
|
|
|
|
37 | | CallTypeDestroy,
|
|
|
|
38 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
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`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:45:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
45 | / enum Consts {
|
2017-02-07 20:05:30 +00:00
|
|
|
46 | | ConstantInt,
|
|
|
|
47 | | ConstantCake,
|
|
|
|
48 | | ConstantLie,
|
|
|
|
49 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
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`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:78:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
78 | / enum Seallll {
|
2017-02-07 20:05:30 +00:00
|
|
|
79 | | WithOutCake,
|
|
|
|
80 | | WithOutTea,
|
|
|
|
81 | | WithOut,
|
|
|
|
82 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
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`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:84:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
84 | / enum NonCaps {
|
2017-02-07 20:05:30 +00:00
|
|
|
85 | | Prefix的,
|
|
|
|
86 | | PrefixTea,
|
|
|
|
87 | | PrefixCake,
|
|
|
|
88 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D enum-variant-names` implied by `-D warnings`
|
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`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> enum_variants.rs:90:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-04-23 13:25:22 +00:00
|
|
|
90 | / pub enum PubSeall {
|
2017-02-07 20:05:30 +00:00
|
|
|
91 | | WithOutCake,
|
|
|
|
92 | | WithOutTea,
|
|
|
|
93 | | WithOut,
|
|
|
|
94 | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D pub-enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|