|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
+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
+
error: variant name starts with the enum's name
--> $DIR/enum_variants.rs:26:5
|
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
-error: all variants have the same prefix: `WithOut`
- --> $DIR/enum_variants.rs:81:1
+error: all variants have the same prefix: `C`
+ --> $DIR/enum_variants.rs:59:1
|
-LL | / enum Seallll {
-LL | | WithOutCake,
-LL | | WithOutTea,
-LL | | WithOut,
+LL | / enum Something {
+LL | | CCall,
+LL | | CCreate,
+LL | | CCryogenize,
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:87:1
+error: all variants have the same prefix: `WithOut`
+ --> $DIR/enum_variants.rs:81:1
|
-LL | / enum NonCaps {
-LL | | Prefixçš„,
-LL | | PrefixTea,
-LL | | PrefixCake,
+LL | / enum Seallll {
+LL | | WithOutCake,
+LL | | WithOutTea,
+LL | | WithOut,
LL | | }
| |_^
|
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
-error: aborting due to 11 previous errors
+error: all variants have the same prefix: `_Type`
+ --> $DIR/enum_variants.rs:162:5
+ |
+LL | / enum DoLint {
+LL | | _TypeCreate,
+LL | | _TypeRead,
+LL | | _TypeUpdate,
+LL | | _TypeDestroy,
+LL | | }
+ | |_____^
+ |
+ = help: remove the prefixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same postfix: `Type`
+ --> $DIR/enum_variants.rs:169:5
+ |
+LL | / enum DoLintToo {
+LL | | _CreateType,
+LL | | _UpdateType,
+LL | | _DeleteType,
+LL | | }
+ | |_____^
+ |
+ = help: remove the postfixes and use full paths to the variants instead of glob imports
+
+error: aborting due to 14 previous errors