]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum_variants.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / enum_variants.stderr
1 error: Variant name ends with the enum's name
2   --> $DIR/enum_variants.rs:16:5
3    |
4 LL |     cFoo,
5    |     ^^^^
6    |
7    = note: `-D clippy::enum-variant-names` implied by `-D warnings`
8
9 error: Variant name starts with the enum's name
10   --> $DIR/enum_variants.rs:27:5
11    |
12 LL |     FoodGood,
13    |     ^^^^^^^^
14
15 error: Variant name starts with the enum's name
16   --> $DIR/enum_variants.rs:28:5
17    |
18 LL |     FoodMiddle,
19    |     ^^^^^^^^^^
20
21 error: Variant name starts with the enum's name
22   --> $DIR/enum_variants.rs:29:5
23    |
24 LL |     FoodBad,
25    |     ^^^^^^^
26
27 error: All variants have the same prefix: `Food`
28   --> $DIR/enum_variants.rs:26:1
29    |
30 LL | / enum Food {
31 LL | |     FoodGood,
32 LL | |     FoodMiddle,
33 LL | |     FoodBad,
34 LL | | }
35    | |_^
36    |
37    = help: remove the prefixes and use full paths to the variants instead of glob imports
38
39 error: All variants have the same prefix: `CallType`
40   --> $DIR/enum_variants.rs:36:1
41    |
42 LL | / enum BadCallType {
43 LL | |     CallTypeCall,
44 LL | |     CallTypeCreate,
45 LL | |     CallTypeDestroy,
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: `Constant`
52   --> $DIR/enum_variants.rs:48:1
53    |
54 LL | / enum Consts {
55 LL | |     ConstantInt,
56 LL | |     ConstantCake,
57 LL | |     ConstantLie,
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: `With`
64   --> $DIR/enum_variants.rs:82:1
65    |
66 LL | / enum Seallll {
67 LL | |     WithOutCake,
68 LL | |     WithOutTea,
69 LL | |     WithOut,
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: `Prefix`
76   --> $DIR/enum_variants.rs:88:1
77    |
78 LL | / enum NonCaps {
79 LL | |     Prefixçš„,
80 LL | |     PrefixTea,
81 LL | |     PrefixCake,
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: `With`
88   --> $DIR/enum_variants.rs:94:1
89    |
90 LL | / pub enum PubSeall {
91 LL | |     WithOutCake,
92 LL | |     WithOutTea,
93 LL | |     WithOut,
94 LL | | }
95    | |_^
96    |
97    = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
98    = help: remove the prefixes and use full paths to the variants instead of glob imports
99
100 error: aborting due to 10 previous errors
101