rust/tests/ui/enum_variants.stderr

102 lines
2.4 KiB
Plaintext

error: Variant name ends with the enum's name
--> $DIR/enum_variants.rs:16:5
|
16 | cFoo,
| ^^^^
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:27:5
|
27 | FoodGood,
| ^^^^^^^^
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:28:5
|
28 | FoodMiddle,
| ^^^^^^^^^^
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:29:5
|
29 | FoodBad,
| ^^^^^^^
error: All variants have the same prefix: `Food`
--> $DIR/enum_variants.rs:26:1
|
26 | / enum Food {
27 | | FoodGood,
28 | | FoodMiddle,
29 | | FoodBad,
30 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `CallType`
--> $DIR/enum_variants.rs:36:1
|
36 | / enum BadCallType {
37 | | CallTypeCall,
38 | | CallTypeCreate,
39 | | CallTypeDestroy,
40 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Constant`
--> $DIR/enum_variants.rs:47:1
|
47 | / enum Consts {
48 | | ConstantInt,
49 | | ConstantCake,
50 | | ConstantLie,
51 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
--> $DIR/enum_variants.rs:80:1
|
80 | / enum Seallll {
81 | | WithOutCake,
82 | | WithOutTea,
83 | | WithOut,
84 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Prefix`
--> $DIR/enum_variants.rs:86:1
|
86 | / enum NonCaps {
87 | | Prefix的,
88 | | PrefixTea,
89 | | PrefixCake,
90 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
--> $DIR/enum_variants.rs:92:1
|
92 | / pub enum PubSeall {
93 | | WithOutCake,
94 | | WithOutTea,
95 | | WithOut,
96 | | }
| |_^
|
= 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
error: aborting due to 10 previous errors