]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/enum_variants.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / enum_variants.stderr
CommitLineData
ea8adc8c
XL
1error: Variant name ends with the enum's name
2 --> $DIR/enum_variants.rs:14:5
3 |
414 | cFoo,
5 | ^^^^
6 |
7 = note: `-D enum-variant-names` implied by `-D warnings`
8
9error: Variant name starts with the enum's name
10 --> $DIR/enum_variants.rs:25:5
11 |
1225 | FoodGood,
13 | ^^^^^^^^
14
15error: Variant name starts with the enum's name
16 --> $DIR/enum_variants.rs:26:5
17 |
1826 | FoodMiddle,
19 | ^^^^^^^^^^
20
21error: Variant name starts with the enum's name
22 --> $DIR/enum_variants.rs:27:5
23 |
2427 | FoodBad,
25 | ^^^^^^^
26
27error: All variants have the same prefix: `Food`
28 --> $DIR/enum_variants.rs:24:1
29 |
3024 | / enum Food {
3125 | | FoodGood,
3226 | | FoodMiddle,
3327 | | FoodBad,
3428 | | }
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:34:1
41 |
4234 | / enum BadCallType {
4335 | | CallTypeCall,
4436 | | CallTypeCreate,
4537 | | CallTypeDestroy,
4638 | | }
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:45:1
53 |
5445 | / enum Consts {
5546 | | ConstantInt,
5647 | | ConstantCake,
5748 | | ConstantLie,
5849 | | }
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:78:1
65 |
6678 | / enum Seallll {
6779 | | WithOutCake,
6880 | | WithOutTea,
6981 | | WithOut,
7082 | | }
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:84:1
77 |
7884 | / enum NonCaps {
7985 | | Prefixçš„,
8086 | | PrefixTea,
8187 | | PrefixCake,
8288 | | }
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:90:1
89 |
9090 | / pub enum PubSeall {
9191 | | WithOutCake,
9292 | | WithOutTea,
9393 | | WithOut,
9494 | | }
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