rust-clippy/tests/ui/enum_variants.stderr

102 lines
2.4 KiB
Text
Raw Normal View History

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