@@ -6,6 +6,18 @@ LL | cFoo,
6
6
|
7
7
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
8
8
9
+ error: all variants have the same prefix: `c`
10
+ --> $DIR/enum_variants.rs:14:1
11
+ |
12
+ LL | / enum Foo {
13
+ LL | | cFoo,
14
+ LL | | cBar,
15
+ LL | | cBaz,
16
+ LL | | }
17
+ | |_^
18
+ |
19
+ = help: remove the prefixes and use full paths to the variants instead of glob imports
20
+
9
21
error: variant name starts with the enum's name
10
22
--> $DIR/enum_variants.rs:26:5
11
23
|
@@ -60,31 +72,31 @@ LL | | }
60
72
|
61
73
= help: remove the prefixes and use full paths to the variants instead of glob imports
62
74
63
- error: all variants have the same prefix: `WithOut `
64
- --> $DIR/enum_variants.rs:81 :1
75
+ error: all variants have the same prefix: `C `
76
+ --> $DIR/enum_variants.rs:59 :1
65
77
|
66
- LL | / enum Seallll {
67
- LL | | WithOutCake ,
68
- LL | | WithOutTea ,
69
- LL | | WithOut ,
78
+ LL | / enum Something {
79
+ LL | | CCall ,
80
+ LL | | CCreate ,
81
+ LL | | CCryogenize ,
70
82
LL | | }
71
83
| |_^
72
84
|
73
85
= help: remove the prefixes and use full paths to the variants instead of glob imports
74
86
75
- error: all variants have the same prefix: `Prefix `
76
- --> $DIR/enum_variants.rs:87 :1
87
+ error: all variants have the same prefix: `WithOut `
88
+ --> $DIR/enum_variants.rs:81 :1
77
89
|
78
- LL | / enum NonCaps {
79
- LL | | Prefix的 ,
80
- LL | | PrefixTea ,
81
- LL | | PrefixCake ,
90
+ LL | / enum Seallll {
91
+ LL | | WithOutCake ,
92
+ LL | | WithOutTea ,
93
+ LL | | WithOut ,
82
94
LL | | }
83
95
| |_^
84
96
|
85
97
= help: remove the prefixes and use full paths to the variants instead of glob imports
86
98
87
- error: all variants have the same postfix: `IData `
99
+ error: all variants have the same postfix: `DataI `
88
100
--> $DIR/enum_variants.rs:136:1
89
101
|
90
102
LL | / enum IDataRequest {
@@ -96,7 +108,7 @@ LL | | }
96
108
|
97
109
= help: remove the postfixes and use full paths to the variants instead of glob imports
98
110
99
- error: all variants have the same postfix: `HIData `
111
+ error: all variants have the same postfix: `DataIH `
100
112
--> $DIR/enum_variants.rs:142:1
101
113
|
102
114
LL | / enum HIDataRequest {
@@ -108,5 +120,5 @@ LL | | }
108
120
|
109
121
= help: remove the postfixes and use full paths to the variants instead of glob imports
110
122
111
- error: aborting due to 11 previous errors
123
+ error: aborting due to 12 previous errors
112
124
0 commit comments