mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 11:13:43 +00:00
102 lines
2.4 KiB
Plaintext
102 lines
2.4 KiB
Plaintext
error: Variant name ends with the enum's name
|
|
--> $DIR/enum_variants.rs:25:5
|
|
|
|
|
LL | cFoo,
|
|
| ^^^^
|
|
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:36:5
|
|
|
|
|
LL | FoodGood,
|
|
| ^^^^^^^^
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:37:5
|
|
|
|
|
LL | FoodMiddle,
|
|
| ^^^^^^^^^^
|
|
|
|
error: Variant name starts with the enum's name
|
|
--> $DIR/enum_variants.rs:38:5
|
|
|
|
|
LL | FoodBad,
|
|
| ^^^^^^^
|
|
|
|
error: All variants have the same prefix: `Food`
|
|
--> $DIR/enum_variants.rs:35:1
|
|
|
|
|
LL | / enum Food {
|
|
LL | | FoodGood,
|
|
LL | | FoodMiddle,
|
|
LL | | FoodBad,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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:45:1
|
|
|
|
|
LL | / enum BadCallType {
|
|
LL | | CallTypeCall,
|
|
LL | | CallTypeCreate,
|
|
LL | | CallTypeDestroy,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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:57:1
|
|
|
|
|
LL | / enum Consts {
|
|
LL | | ConstantInt,
|
|
LL | | ConstantCake,
|
|
LL | | ConstantLie,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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:91:1
|
|
|
|
|
LL | / enum Seallll {
|
|
LL | | WithOutCake,
|
|
LL | | WithOutTea,
|
|
LL | | WithOut,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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:97:1
|
|
|
|
|
LL | / enum NonCaps {
|
|
LL | | Prefix的,
|
|
LL | | PrefixTea,
|
|
LL | | PrefixCake,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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:103:1
|
|
|
|
|
LL | / pub enum PubSeall {
|
|
LL | | WithOutCake,
|
|
LL | | WithOutTea,
|
|
LL | | WithOut,
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= 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
|
|
|