2020-08-11 09:38:20 -05:00
|
|
|
error: variant name ends with the enum's name
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:15:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | cFoo,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^
|
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: all variants have the same prefix: `c`
|
|
|
|
--> $DIR/enum_variants.rs:14:1
|
|
|
|
|
|
|
|
|
LL | / enum Foo {
|
|
|
|
LL | | cFoo,
|
|
|
|
LL | | cBar,
|
|
|
|
LL | | cBaz,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 09:38:20 -05:00
|
|
|
error: variant name starts with the enum's name
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:26:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | FoodGood,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
2020-08-11 09:38:20 -05:00
|
|
|
error: variant name starts with the enum's name
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:27:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | FoodMiddle,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-08-11 09:38:20 -05:00
|
|
|
error: variant name starts with the enum's name
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:28:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | FoodBad,
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2020-08-11 09:28:05 -05:00
|
|
|
error: all variants have the same prefix: `Food`
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:25:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / enum Food {
|
|
|
|
LL | | FoodGood,
|
|
|
|
LL | | FoodMiddle,
|
|
|
|
LL | | FoodBad,
|
|
|
|
LL | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 09:28:05 -05:00
|
|
|
error: all variants have the same prefix: `CallType`
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:35:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / enum BadCallType {
|
|
|
|
LL | | CallTypeCall,
|
|
|
|
LL | | CallTypeCreate,
|
|
|
|
LL | | CallTypeDestroy,
|
|
|
|
LL | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2020-08-11 09:28:05 -05:00
|
|
|
error: all variants have the same prefix: `Constant`
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:47:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | / enum Consts {
|
|
|
|
LL | | ConstantInt,
|
|
|
|
LL | | ConstantCake,
|
|
|
|
LL | | ConstantLie,
|
|
|
|
LL | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: all variants have the same prefix: `C`
|
|
|
|
--> $DIR/enum_variants.rs:59:1
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
LL | / enum Something {
|
|
|
|
LL | | CCall,
|
|
|
|
LL | | CCreate,
|
|
|
|
LL | | CCryogenize,
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | }
|
2017-04-23 08:25:22 -05:00
|
|
|
| |_^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: all variants have the same prefix: `WithOut`
|
|
|
|
--> $DIR/enum_variants.rs:81:1
|
2018-12-27 09:57:55 -06:00
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
LL | / enum Seallll {
|
|
|
|
LL | | WithOutCake,
|
|
|
|
LL | | WithOutTea,
|
|
|
|
LL | | WithOut,
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: all variants have the same postfix: `DataI`
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:136:1
|
2021-02-20 12:48:04 -06:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: all variants have the same postfix: `DataIH`
|
2021-05-06 14:02:24 -05:00
|
|
|
--> $DIR/enum_variants.rs:142:1
|
2021-02-20 12:48:04 -06:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-12-22 03:04:48 -06:00
|
|
|
error: aborting due to 12 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|