rust/tests/ui/enum_variants.stderr

100 lines
2.3 KiB
Plaintext
Raw Normal View History

error: Variant name ends with the enum's name
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:14:5
|
2017-02-08 13:58:07 +00:00
14 | cFoo,
| ^^^^
|
= note: `-D enum-variant-names` implied by `-D warnings`
error: Variant name starts with the enum's name
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:25:5
|
2017-02-08 13:58:07 +00:00
25 | FoodGood,
| ^^^^^^^^
error: Variant name starts with the enum's name
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:26:5
|
2017-02-08 13:58:07 +00:00
26 | FoodMiddle,
| ^^^^^^^^^^
error: Variant name starts with the enum's name
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:27:5
|
2017-02-08 13:58:07 +00:00
27 | FoodBad,
| ^^^^^^^
error: All variants have the same prefix: `Food`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:24:1
|
24 | / enum Food {
2017-02-08 13:58:07 +00:00
25 | | FoodGood,
26 | | FoodMiddle,
27 | | FoodBad,
28 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `CallType`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:34:1
|
34 | / enum BadCallType {
35 | | CallTypeCall,
36 | | CallTypeCreate,
37 | | CallTypeDestroy,
38 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Constant`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:45:1
|
45 | / enum Consts {
46 | | ConstantInt,
47 | | ConstantCake,
48 | | ConstantLie,
49 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:78:1
|
78 | / enum Seallll {
79 | | WithOutCake,
80 | | WithOutTea,
81 | | WithOut,
82 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Prefix`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:84:1
|
84 | / enum NonCaps {
85 | | Prefix的,
86 | | PrefixTea,
87 | | PrefixCake,
88 | | }
| |_^
|
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
2017-08-01 15:54:21 +00:00
--> $DIR/enum_variants.rs:90:1
|
90 | / pub enum PubSeall {
91 | | WithOutCake,
92 | | WithOutTea,
93 | | WithOut,
94 | | }
| |_^
|
= note: `-D pub-enum-variant-names` implied by `-D warnings`
= help: remove the prefixes and use full paths to the variants instead of glob imports