summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/enum_variants.stderr
blob: 2835391de7f5838a7013ff98feb3357826c03df7 (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
error: Variant name ends with the enum's name
  --> $DIR/enum_variants.rs:16:5
   |
LL |     cFoo,
   |     ^^^^
   |
   = note: `-D clippy::enum-variant-names` implied by `-D warnings`

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

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

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

error: All variants have the same prefix: `Food`
  --> $DIR/enum_variants.rs:26: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:36: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:48: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: `With`
  --> $DIR/enum_variants.rs:82: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 prefix: `Prefix`
  --> $DIR/enum_variants.rs:88:1
   |
LL | / enum NonCaps {
LL | |     Prefix的,
LL | |     PrefixTea,
LL | |     PrefixCake,
LL | | }
   | |_^
   |
   = help: remove the prefixes and use full paths to the variants instead of glob imports

error: All variants have the same prefix: `With`
  --> $DIR/enum_variants.rs:94:1
   |
LL | / pub enum PubSeall {
LL | |     WithOutCake,
LL | |     WithOutTea,
LL | |     WithOut,
LL | | }
   | |_^
   |
   = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
   = help: remove the prefixes and use full paths to the variants instead of glob imports

error: aborting due to 10 previous errors