summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/enum_variants.stderr
blob: 7342aff80f0167ed11cbd4549a7408b99299af96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
error: variant name ends with the enum's name
  --> $DIR/enum_variants.rs:15:5
   |
LL |     cFoo,
   |     ^^^^
   |
   = 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
   |
LL |     FoodGood,
   |     ^^^^^^^^

error: variant name starts with the enum's name
  --> $DIR/enum_variants.rs:27:5
   |
LL |     FoodMiddle,
   |     ^^^^^^^^^^

error: variant name starts with the enum's name
  --> $DIR/enum_variants.rs:28:5
   |
LL |     FoodBad,
   |     ^^^^^^^

error: all variants have the same prefix: `Food`
  --> $DIR/enum_variants.rs:25: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:35: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:47: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: `C`
  --> $DIR/enum_variants.rs:59:1
   |
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: `WithOut`
  --> $DIR/enum_variants.rs:81: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 postfix: `IData`
  --> $DIR/enum_variants.rs:136: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:142: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: 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