]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/enum_variants.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / tools / clippy / 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: variant name starts with the enum's name
10 --> $DIR/enum_variants.rs:26:5
11 |
12 LL | FoodGood,
13 | ^^^^^^^^
14
15 error: variant name starts with the enum's name
16 --> $DIR/enum_variants.rs:27:5
17 |
18 LL | FoodMiddle,
19 | ^^^^^^^^^^
20
21 error: variant name starts with the enum's name
22 --> $DIR/enum_variants.rs:28:5
23 |
24 LL | FoodBad,
25 | ^^^^^^^
26
27 error: all variants have the same prefix: `Food`
28 --> $DIR/enum_variants.rs:25: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:35: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:47: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:81: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:87: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 postfix: `IData`
88 --> $DIR/enum_variants.rs:136:1
89 |
90 LL | / enum IDataRequest {
91 LL | | PutIData(String),
92 LL | | GetIData(String),
93 LL | | DeleteUnpubIData(String),
94 LL | | }
95 | |_^
96 |
97 = help: remove the postfixes and use full paths to the variants instead of glob imports
98
99 error: all variants have the same postfix: `HIData`
100 --> $DIR/enum_variants.rs:142:1
101 |
102 LL | / enum HIDataRequest {
103 LL | | PutHIData(String),
104 LL | | GetHIData(String),
105 LL | | DeleteUnpubHIData(String),
106 LL | | }
107 | |_^
108 |
109 = help: remove the postfixes and use full paths to the variants instead of glob imports
110
111 error: aborting due to 11 previous errors
112