2020-08-11 14:38:20 +00:00
|
|
|
error: variant name ends with the enum's name
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:16:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | cFoo,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-08-11 14:38:20 +00:00
|
|
|
error: variant name starts with the enum's name
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:27:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodGood,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2020-08-11 14:38:20 +00:00
|
|
|
error: variant name starts with the enum's name
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:28:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodMiddle,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-08-11 14:38:20 +00:00
|
|
|
error: variant name starts with the enum's name
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:29:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | FoodBad,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `Food`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:26:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum Food {
|
|
|
|
LL | | FoodGood,
|
|
|
|
LL | | FoodMiddle,
|
|
|
|
LL | | FoodBad,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `CallType`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:36:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum BadCallType {
|
|
|
|
LL | | CallTypeCall,
|
|
|
|
LL | | CallTypeCreate,
|
|
|
|
LL | | CallTypeDestroy,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `Constant`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:48:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum Consts {
|
|
|
|
LL | | ConstantInt,
|
|
|
|
LL | | ConstantCake,
|
|
|
|
LL | | ConstantLie,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `With`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:82:1
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | / enum Seallll {
|
|
|
|
LL | | WithOutCake,
|
|
|
|
LL | | WithOutTea,
|
|
|
|
LL | | WithOut,
|
|
|
|
LL | | }
|
2017-04-23 13:25:22 +00:00
|
|
|
| |_^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `Prefix`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:88:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
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
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-08-11 14:28:05 +00:00
|
|
|
error: all variants have the same prefix: `With`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/enum_variants.rs:94:1
|
2018-12-27 15:57:55 +00:00
|
|
|
|
|
|
|
|
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
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-02-20 18:48:04 +00:00
|
|
|
error: all variants have the same postfix: `IData`
|
|
|
|
--> $DIR/enum_variants.rs:137:1
|
|
|
|
|
|
|
|
|
LL | / enum IDataRequest {
|
|
|
|
LL | | PutIData(String),
|
|
|
|
LL | | GetIData(String),
|
|
|
|
LL | | DeleteUnpubIData(String),
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: all variants have the same postfix: `HIData`
|
|
|
|
--> $DIR/enum_variants.rs:143:1
|
|
|
|
|
|
|
|
|
LL | / enum HIDataRequest {
|
|
|
|
LL | | PutHIData(String),
|
|
|
|
LL | | GetHIData(String),
|
|
|
|
LL | | DeleteUnpubHIData(String),
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|