]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum_variants.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[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 16 |     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 27 |     FoodGood,
13    |     ^^^^^^^^
14
15 error: Variant name starts with the enum's name
16   --> $DIR/enum_variants.rs:28:5
17    |
18 28 |     FoodMiddle,
19    |     ^^^^^^^^^^
20
21 error: Variant name starts with the enum's name
22   --> $DIR/enum_variants.rs:29:5
23    |
24 29 |     FoodBad,
25    |     ^^^^^^^
26
27 error: All variants have the same prefix: `Food`
28   --> $DIR/enum_variants.rs:26:1
29    |
30 26 | / enum Food {
31 27 | |     FoodGood,
32 28 | |     FoodMiddle,
33 29 | |     FoodBad,
34 30 | | }
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 36 | / enum BadCallType {
43 37 | |     CallTypeCall,
44 38 | |     CallTypeCreate,
45 39 | |     CallTypeDestroy,
46 40 | | }
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 47 | / enum Consts {
55 48 | |     ConstantInt,
56 49 | |     ConstantCake,
57 50 | |     ConstantLie,
58 51 | | }
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:80:1
65    |
66 80 | / enum Seallll {
67 81 | |     WithOutCake,
68 82 | |     WithOutTea,
69 83 | |     WithOut,
70 84 | | }
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:86:1
77    |
78 86 | / enum NonCaps {
79 87 | |     Prefixçš„,
80 88 | |     PrefixTea,
81 89 | |     PrefixCake,
82 90 | | }
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:92:1
89    |
90 92 | / pub enum PubSeall {
91 93 | |     WithOutCake,
92 94 | |     WithOutTea,
93 95 | |     WithOut,
94 96 | | }
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