]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/enum_variants.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / enum_variants.stderr
CommitLineData
f20569fa
XL
1error: variant name ends with the enum's name
2 --> $DIR/enum_variants.rs:16:5
3 |
4LL | cFoo,
5 | ^^^^
6 |
7 = note: `-D clippy::enum-variant-names` implied by `-D warnings`
8
9error: variant name starts with the enum's name
10 --> $DIR/enum_variants.rs:27:5
11 |
12LL | FoodGood,
13 | ^^^^^^^^
14
15error: variant name starts with the enum's name
16 --> $DIR/enum_variants.rs:28:5
17 |
18LL | FoodMiddle,
19 | ^^^^^^^^^^
20
21error: variant name starts with the enum's name
22 --> $DIR/enum_variants.rs:29:5
23 |
24LL | FoodBad,
25 | ^^^^^^^
26
27error: all variants have the same prefix: `Food`
28 --> $DIR/enum_variants.rs:26:1
29 |
30LL | / enum Food {
31LL | | FoodGood,
32LL | | FoodMiddle,
33LL | | FoodBad,
34LL | | }
35 | |_^
36 |
37 = help: remove the prefixes and use full paths to the variants instead of glob imports
38
39error: all variants have the same prefix: `CallType`
40 --> $DIR/enum_variants.rs:36:1
41 |
42LL | / enum BadCallType {
43LL | | CallTypeCall,
44LL | | CallTypeCreate,
45LL | | CallTypeDestroy,
46LL | | }
47 | |_^
48 |
49 = help: remove the prefixes and use full paths to the variants instead of glob imports
50
51error: all variants have the same prefix: `Constant`
52 --> $DIR/enum_variants.rs:48:1
53 |
54LL | / enum Consts {
55LL | | ConstantInt,
56LL | | ConstantCake,
57LL | | ConstantLie,
58LL | | }
59 | |_^
60 |
61 = help: remove the prefixes and use full paths to the variants instead of glob imports
62
63error: all variants have the same prefix: `With`
64 --> $DIR/enum_variants.rs:82:1
65 |
66LL | / enum Seallll {
67LL | | WithOutCake,
68LL | | WithOutTea,
69LL | | WithOut,
70LL | | }
71 | |_^
72 |
73 = help: remove the prefixes and use full paths to the variants instead of glob imports
74
75error: all variants have the same prefix: `Prefix`
76 --> $DIR/enum_variants.rs:88:1
77 |
78LL | / enum NonCaps {
79LL | | Prefixçš„,
80LL | | PrefixTea,
81LL | | PrefixCake,
82LL | | }
83 | |_^
84 |
85 = help: remove the prefixes and use full paths to the variants instead of glob imports
86
87error: all variants have the same prefix: `With`
88 --> $DIR/enum_variants.rs:94:1
89 |
90LL | / pub enum PubSeall {
91LL | | WithOutCake,
92LL | | WithOutTea,
93LL | | WithOut,
94LL | | }
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
100error: all variants have the same postfix: `IData`
101 --> $DIR/enum_variants.rs:137:1
102 |
103LL | / enum IDataRequest {
104LL | | PutIData(String),
105LL | | GetIData(String),
106LL | | DeleteUnpubIData(String),
107LL | | }
108 | |_^
109 |
110 = help: remove the postfixes and use full paths to the variants instead of glob imports
111
112error: all variants have the same postfix: `HIData`
113 --> $DIR/enum_variants.rs:143:1
114 |
115LL | / enum HIDataRequest {
116LL | | PutHIData(String),
117LL | | GetHIData(String),
118LL | | DeleteUnpubHIData(String),
119LL | | }
120 | |_^
121 |
122 = help: remove the postfixes and use full paths to the variants instead of glob imports
123
124error: aborting due to 12 previous errors
125