]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/enum_variants.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / enum_variants.stderr
index ff8f9b82ae6d6ac8347803d894aaf703357a1b84..2835391de7f5838a7013ff98feb3357826c03df7 100644 (file)
 error: Variant name ends with the enum's name
-  --> $DIR/enum_variants.rs:24:5
+  --> $DIR/enum_variants.rs:16:5
    |
-24 |     cFoo,
+LL |     cFoo,
    |     ^^^^
    |
    = note: `-D clippy::enum-variant-names` implied by `-D warnings`
 
 error: Variant name starts with the enum's name
-  --> $DIR/enum_variants.rs:35:5
+  --> $DIR/enum_variants.rs:27:5
    |
-35 |     FoodGood,
+LL |     FoodGood,
    |     ^^^^^^^^
 
 error: Variant name starts with the enum's name
-  --> $DIR/enum_variants.rs:36:5
+  --> $DIR/enum_variants.rs:28:5
    |
-36 |     FoodMiddle,
+LL |     FoodMiddle,
    |     ^^^^^^^^^^
 
 error: Variant name starts with the enum's name
-  --> $DIR/enum_variants.rs:37:5
+  --> $DIR/enum_variants.rs:29:5
    |
-37 |     FoodBad,
+LL |     FoodBad,
    |     ^^^^^^^
 
 error: All variants have the same prefix: `Food`
-  --> $DIR/enum_variants.rs:34:1
+  --> $DIR/enum_variants.rs:26:1
    |
-34 | / enum Food {
-35 | |     FoodGood,
-36 | |     FoodMiddle,
-37 | |     FoodBad,
-38 | | }
+LL | / enum Food {
+LL | |     FoodGood,
+LL | |     FoodMiddle,
+LL | |     FoodBad,
+LL | | }
    | |_^
    |
    = 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:44:1
+  --> $DIR/enum_variants.rs:36:1
    |
-44 | / enum BadCallType {
-45 | |     CallTypeCall,
-46 | |     CallTypeCreate,
-47 | |     CallTypeDestroy,
-48 | | }
+LL | / enum BadCallType {
+LL | |     CallTypeCall,
+LL | |     CallTypeCreate,
+LL | |     CallTypeDestroy,
+LL | | }
    | |_^
    |
    = 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:56:1
+  --> $DIR/enum_variants.rs:48:1
    |
-56 | / enum Consts {
-57 | |     ConstantInt,
-58 | |     ConstantCake,
-59 | |     ConstantLie,
-60 | | }
+LL | / enum Consts {
+LL | |     ConstantInt,
+LL | |     ConstantCake,
+LL | |     ConstantLie,
+LL | | }
    | |_^
    |
    = 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
+  --> $DIR/enum_variants.rs:82:1
    |
-90 | / enum Seallll {
-91 | |     WithOutCake,
-92 | |     WithOutTea,
-93 | |     WithOut,
-94 | | }
+LL | / enum Seallll {
+LL | |     WithOutCake,
+LL | |     WithOutTea,
+LL | |     WithOut,
+LL | | }
    | |_^
    |
    = 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:96:1
-    |
-96  | / enum NonCaps {
-97  | |     Prefix的,
-98  | |     PrefixTea,
-99  | |     PrefixCake,
-100 | | }
-    | |_^
-    |
-    = help: remove the prefixes and use full paths to the variants instead of glob imports
+  --> $DIR/enum_variants.rs:88:1
+   |
+LL | / enum NonCaps {
+LL | |     Prefix的,
+LL | |     PrefixTea,
+LL | |     PrefixCake,
+LL | | }
+   | |_^
+   |
+   = 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:102:1
-    |
-102 | / pub enum PubSeall {
-103 | |     WithOutCake,
-104 | |     WithOutTea,
-105 | |     WithOut,
-106 | | }
-    | |_^
-    |
-    = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
-    = help: remove the prefixes and use full paths to the variants instead of glob imports
+  --> $DIR/enum_variants.rs:94:1
+   |
+LL | / pub enum PubSeall {
+LL | |     WithOutCake,
+LL | |     WithOutTea,
+LL | |     WithOut,
+LL | | }
+   | |_^
+   |
+   = note: `-D clippy::pub-enum-variant-names` implied by `-D warnings`
+   = help: remove the prefixes and use full paths to the variants instead of glob imports
 
 error: aborting due to 10 previous errors