]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum_variants.stderr
Fix `unnecessary_cast` suggestion when taking a reference
[rust.git] / tests / ui / enum_variants.stderr
1 error: variant name ends with the enum's name
2   --> $DIR/enum_variants.rs:15:5
3    |
4 LL |     cFoo,
5    |     ^^^^
6    |
7    = note: `-D clippy::enum-variant-names` implied by `-D warnings`
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
21 error: variant name starts with the enum's name
22   --> $DIR/enum_variants.rs:26:5
23    |
24 LL |     FoodGood,
25    |     ^^^^^^^^
26
27 error: variant name starts with the enum's name
28   --> $DIR/enum_variants.rs:27:5
29    |
30 LL |     FoodMiddle,
31    |     ^^^^^^^^^^
32
33 error: variant name starts with the enum's name
34   --> $DIR/enum_variants.rs:28:5
35    |
36 LL |     FoodBad,
37    |     ^^^^^^^
38
39 error: all variants have the same prefix: `Food`
40   --> $DIR/enum_variants.rs:25:1
41    |
42 LL | / enum Food {
43 LL | |     FoodGood,
44 LL | |     FoodMiddle,
45 LL | |     FoodBad,
46 LL | | }
47    | |_^
48    |
49    = help: remove the prefixes and use full paths to the variants instead of glob imports
50
51 error: all variants have the same prefix: `CallType`
52   --> $DIR/enum_variants.rs:35:1
53    |
54 LL | / enum BadCallType {
55 LL | |     CallTypeCall,
56 LL | |     CallTypeCreate,
57 LL | |     CallTypeDestroy,
58 LL | | }
59    | |_^
60    |
61    = help: remove the prefixes and use full paths to the variants instead of glob imports
62
63 error: all variants have the same prefix: `Constant`
64   --> $DIR/enum_variants.rs:47:1
65    |
66 LL | / enum Consts {
67 LL | |     ConstantInt,
68 LL | |     ConstantCake,
69 LL | |     ConstantLie,
70 LL | | }
71    | |_^
72    |
73    = help: remove the prefixes and use full paths to the variants instead of glob imports
74
75 error: all variants have the same prefix: `C`
76   --> $DIR/enum_variants.rs:59:1
77    |
78 LL | / enum Something {
79 LL | |     CCall,
80 LL | |     CCreate,
81 LL | |     CCryogenize,
82 LL | | }
83    | |_^
84    |
85    = help: remove the prefixes and use full paths to the variants instead of glob imports
86
87 error: all variants have the same prefix: `WithOut`
88   --> $DIR/enum_variants.rs:81:1
89    |
90 LL | / enum Seallll {
91 LL | |     WithOutCake,
92 LL | |     WithOutTea,
93 LL | |     WithOut,
94 LL | | }
95    | |_^
96    |
97    = help: remove the prefixes and use full paths to the variants instead of glob imports
98
99 error: all variants have the same postfix: `IData`
100   --> $DIR/enum_variants.rs:136:1
101    |
102 LL | / enum IDataRequest {
103 LL | |     PutIData(String),
104 LL | |     GetIData(String),
105 LL | |     DeleteUnpubIData(String),
106 LL | | }
107    | |_^
108    |
109    = help: remove the postfixes and use full paths to the variants instead of glob imports
110
111 error: all variants have the same postfix: `HIData`
112   --> $DIR/enum_variants.rs:142:1
113    |
114 LL | / enum HIDataRequest {
115 LL | |     PutHIData(String),
116 LL | |     GetHIData(String),
117 LL | |     DeleteUnpubHIData(String),
118 LL | | }
119    | |_^
120    |
121    = help: remove the postfixes and use full paths to the variants instead of glob imports
122
123 error: all variants have the same prefix: `_Type`
124   --> $DIR/enum_variants.rs:162:5
125    |
126 LL | /     enum DoLint {
127 LL | |         _TypeCreate,
128 LL | |         _TypeRead,
129 LL | |         _TypeUpdate,
130 LL | |         _TypeDestroy,
131 LL | |     }
132    | |_____^
133    |
134    = help: remove the prefixes and use full paths to the variants instead of glob imports
135
136 error: all variants have the same postfix: `Type`
137   --> $DIR/enum_variants.rs:169:5
138    |
139 LL | /     enum DoLintToo {
140 LL | |         _CreateType,
141 LL | |         _UpdateType,
142 LL | |         _DeleteType,
143 LL | |     }
144    | |_____^
145    |
146    = help: remove the postfixes and use full paths to the variants instead of glob imports
147
148 error: aborting due to 14 previous errors
149