rust/tests/ui/enum_variants.stderr

128 lines
3.4 KiB
Plaintext
Raw Normal View History

error: Variant name ends with the enum's name
--> $DIR/enum_variants.rs:14:5
|
2017-02-08 14:58:07 +01:00
14 | cFoo,
| ^^^^
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
note: lint level defined here
--> $DIR/enum_variants.rs:3:9
|
3 | #![deny(clippy, pub_enum_variant_names)]
| ^^^^^^
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:25:5
|
2017-02-08 14:58:07 +01:00
25 | FoodGood,
| ^^^^^^^^
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:26:5
|
2017-02-08 14:58:07 +01:00
26 | FoodMiddle,
| ^^^^^^^^^^
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
error: Variant name starts with the enum's name
--> $DIR/enum_variants.rs:27:5
|
2017-02-08 14:58:07 +01:00
27 | FoodBad,
| ^^^^^^^
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
error: All variants have the same prefix: `Food`
--> $DIR/enum_variants.rs:24:1
|
2017-02-08 14:58:07 +01:00
24 | enum Food {
| _^ starting here...
2017-02-08 14:58:07 +01:00
25 | | FoodGood,
26 | | FoodMiddle,
27 | | FoodBad,
28 | | }
| |_^ ...ending here
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `CallType`
--> $DIR/enum_variants.rs:34:1
|
2017-02-08 14:58:07 +01:00
34 | enum BadCallType {
| _^ starting here...
35 | | CallTypeCall,
36 | | CallTypeCreate,
37 | | CallTypeDestroy,
38 | | }
| |_^ ...ending here
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Constant`
--> $DIR/enum_variants.rs:45:1
|
2017-02-08 14:58:07 +01:00
45 | enum Consts {
| _^ starting here...
46 | | ConstantInt,
47 | | ConstantCake,
48 | | ConstantLie,
49 | | }
| |_^ ...ending here
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
--> $DIR/enum_variants.rs:78:1
|
2017-02-08 14:58:07 +01:00
78 | enum Seallll {
| _^ starting here...
79 | | WithOutCake,
80 | | WithOutTea,
81 | | WithOut,
82 | | }
| |_^ ...ending here
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `Prefix`
--> $DIR/enum_variants.rs:84:1
|
2017-02-08 14:58:07 +01:00
84 | enum NonCaps {
| _^ starting here...
85 | | Prefix的,
86 | | PrefixTea,
87 | | PrefixCake,
88 | | }
| |_^ ...ending here
|
= note: #[deny(enum_variant_names)] implied by #[deny(clippy)]
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: All variants have the same prefix: `With`
--> $DIR/enum_variants.rs:90:1
|
2017-02-08 14:58:07 +01:00
90 | pub enum PubSeall {
| _^ starting here...
91 | | WithOutCake,
92 | | WithOutTea,
93 | | WithOut,
94 | | }
| |_^ ...ending here
|
note: lint level defined here
--> $DIR/enum_variants.rs:3:17
|
3 | #![deny(clippy, pub_enum_variant_names)]
| ^^^^^^^^^^^^^^^^^^^^^^
= help: remove the prefixes and use full paths to the variants instead of glob imports
error: aborting due to 10 previous errors