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