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-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:25:5
|
2018-12-25 21:11:28 +00:00
25 | cFoo,
| ^^^^
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
error: Variant name starts with the enum's name
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:36:5
|
2018-12-25 21:11:28 +00:00
36 | FoodGood,
| ^^^^^^^^
error: Variant name starts with the enum's name
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:37:5
|
2018-12-25 21:11:28 +00:00
37 | FoodMiddle,
| ^^^^^^^^^^
error: Variant name starts with the enum's name
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:38:5
|
2018-12-25 21:11:28 +00:00
38 | FoodBad,
| ^^^^^^^
error: All variants have the same prefix: `Food`
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:35:1
|
2018-12-25 21:11:28 +00:00
35 | / enum Food {
36 | | FoodGood,
37 | | FoodMiddle,
38 | | FoodBad,
39 | | }
| |_^
|
= 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-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:45:1
|
2018-12-25 21:11:28 +00:00
45 | / enum BadCallType {
46 | | CallTypeCall,
47 | | CallTypeCreate,
48 | | CallTypeDestroy,
49 | | }
| |_^
|
= 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-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:57:1
|
2018-12-25 21:11:28 +00:00
57 | / enum Consts {
58 | | ConstantInt,
59 | | ConstantCake,
60 | | ConstantLie,
61 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:91:1
|
2018-12-25 21:11:28 +00:00
91 | / enum Seallll {
92 | | WithOutCake,
93 | | WithOutTea,
94 | | WithOut,
95 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Prefix`
2018-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:97:1
2018-10-06 16:18:06 +00:00
|
2018-12-25 21:11:28 +00:00
97 | / enum NonCaps {
98 | | Prefix的,
99 | | PrefixTea,
100 | | PrefixCake,
101 | | }
2018-10-06 16:18:06 +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-12-25 21:11:28 +00:00
--> $DIR/enum_variants.rs:103:1
2018-10-06 16:18:06 +00:00
|
2018-12-25 21:11:28 +00:00
103 | / pub enum PubSeall {
104 | | WithOutCake,
105 | | WithOutTea,
106 | | WithOut,
107 | | }
2018-10-06 16:18:06 +00:00
| |_^
|
= 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