]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/enum_variants.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / enum_variants.stderr
1 error: Variant name ends with the enum's name
2   --> enum_variants.rs:14:5
3    |
4 14 |     cFoo,
5    |     ^^^^
6    |
7    = note: `-D enum-variant-names` implied by `-D warnings`
8
9 error: Variant name starts with the enum's name
10   --> enum_variants.rs:25:5
11    |
12 25 |     FoodGood,
13    |     ^^^^^^^^
14    |
15    = note: `-D enum-variant-names` implied by `-D warnings`
16
17 error: Variant name starts with the enum's name
18   --> enum_variants.rs:26:5
19    |
20 26 |     FoodMiddle,
21    |     ^^^^^^^^^^
22    |
23    = note: `-D enum-variant-names` implied by `-D warnings`
24
25 error: Variant name starts with the enum's name
26   --> enum_variants.rs:27:5
27    |
28 27 |     FoodBad,
29    |     ^^^^^^^
30    |
31    = note: `-D enum-variant-names` implied by `-D warnings`
32
33 error: All variants have the same prefix: `Food`
34   --> enum_variants.rs:24:1
35    |
36 24 | / enum Food {
37 25 | |     FoodGood,
38 26 | |     FoodMiddle,
39 27 | |     FoodBad,
40 28 | | }
41    | |_^
42    |
43    = note: `-D enum-variant-names` implied by `-D warnings`
44    = help: remove the prefixes and use full paths to the variants instead of glob imports
45
46 error: All variants have the same prefix: `CallType`
47   --> enum_variants.rs:34:1
48    |
49 34 | / enum BadCallType {
50 35 | |     CallTypeCall,
51 36 | |     CallTypeCreate,
52 37 | |     CallTypeDestroy,
53 38 | | }
54    | |_^
55    |
56    = note: `-D enum-variant-names` implied by `-D warnings`
57    = help: remove the prefixes and use full paths to the variants instead of glob imports
58
59 error: All variants have the same prefix: `Constant`
60   --> enum_variants.rs:45:1
61    |
62 45 | / enum Consts {
63 46 | |     ConstantInt,
64 47 | |     ConstantCake,
65 48 | |     ConstantLie,
66 49 | | }
67    | |_^
68    |
69    = note: `-D enum-variant-names` implied by `-D warnings`
70    = help: remove the prefixes and use full paths to the variants instead of glob imports
71
72 error: All variants have the same prefix: `With`
73   --> enum_variants.rs:78:1
74    |
75 78 | / enum Seallll {
76 79 | |     WithOutCake,
77 80 | |     WithOutTea,
78 81 | |     WithOut,
79 82 | | }
80    | |_^
81    |
82    = note: `-D enum-variant-names` implied by `-D warnings`
83    = help: remove the prefixes and use full paths to the variants instead of glob imports
84
85 error: All variants have the same prefix: `Prefix`
86   --> enum_variants.rs:84:1
87    |
88 84 | / enum NonCaps {
89 85 | |     Prefixçš„,
90 86 | |     PrefixTea,
91 87 | |     PrefixCake,
92 88 | | }
93    | |_^
94    |
95    = note: `-D enum-variant-names` implied by `-D warnings`
96    = help: remove the prefixes and use full paths to the variants instead of glob imports
97
98 error: All variants have the same prefix: `With`
99   --> enum_variants.rs:90:1
100    |
101 90 | / pub enum PubSeall {
102 91 | |     WithOutCake,
103 92 | |     WithOutTea,
104 93 | |     WithOut,
105 94 | | }
106    | |_^
107    |
108    = note: `-D pub-enum-variant-names` implied by `-D warnings`
109    = help: remove the prefixes and use full paths to the variants instead of glob imports
110
111 error: aborting due to previous error(s)
112
113
114 To learn more, run the command again with --verbose.