]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/enum_variants.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / enum_variants.stderr
index 7b63fab3a99f0c6fa19c8dbdb6b93ed75a3420ed..7342aff80f0167ed11cbd4549a7408b99299af96 100644 (file)
-error: Variant name ends with the enum's name
-  --> $DIR/enum_variants.rs:26:5
+error: variant name ends with the enum's name
+  --> $DIR/enum_variants.rs:15:5
    |
-26 |     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:37:5
+error: all variants have the same prefix: `c`
+  --> $DIR/enum_variants.rs:14:1
+   |
+LL | / enum Foo {
+LL | |     cFoo,
+LL | |     cBar,
+LL | |     cBaz,
+LL | | }
+   | |_^
+   |
+   = help: remove the prefixes and use full paths to the variants instead of glob imports
+
+error: variant name starts with the enum's name
+  --> $DIR/enum_variants.rs:26:5
    |
-37 |     FoodGood,
+LL |     FoodGood,
    |     ^^^^^^^^
 
-error: Variant name starts with the enum's name
-  --> $DIR/enum_variants.rs:38:5
+error: variant name starts with the enum's name
+  --> $DIR/enum_variants.rs:27:5
    |
-38 |     FoodMiddle,
+LL |     FoodMiddle,
    |     ^^^^^^^^^^
 
-error: Variant name starts with the enum's name
-  --> $DIR/enum_variants.rs:39:5
+error: variant name starts with the enum's name
+  --> $DIR/enum_variants.rs:28:5
    |
-39 |     FoodBad,
+LL |     FoodBad,
    |     ^^^^^^^
 
-error: All variants have the same prefix: `Food`
-  --> $DIR/enum_variants.rs:36:1
-   |
-36 | / enum Food {
-37 | |     FoodGood,
-38 | |     FoodMiddle,
-39 | |     FoodBad,
-40 | | }
+error: all variants have the same prefix: `Food`
+  --> $DIR/enum_variants.rs:25:1
+   |
+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:46:1
-   |
-46 | / enum BadCallType {
-47 | |     CallTypeCall,
-48 | |     CallTypeCreate,
-49 | |     CallTypeDestroy,
-50 | | }
+error: all variants have the same prefix: `CallType`
+  --> $DIR/enum_variants.rs:35:1
+   |
+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:57:1
-   |
-57 | / enum Consts {
-58 | |     ConstantInt,
-59 | |     ConstantCake,
-60 | |     ConstantLie,
-61 | | }
+error: all variants have the same prefix: `Constant`
+  --> $DIR/enum_variants.rs:47:1
+   |
+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
-   |
-90 | / enum Seallll {
-91 | |     WithOutCake,
-92 | |     WithOutTea,
-93 | |     WithOut,
-94 | | }
+error: all variants have the same prefix: `C`
+  --> $DIR/enum_variants.rs:59:1
+   |
+LL | / enum Something {
+LL | |     CCall,
+LL | |     CCreate,
+LL | |     CCryogenize,
+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
+error: all variants have the same prefix: `WithOut`
+  --> $DIR/enum_variants.rs:81:1
+   |
+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: `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
+error: all variants have the same postfix: `IData`
+  --> $DIR/enum_variants.rs:136:1
+   |
+LL | / enum IDataRequest {
+LL | |     PutIData(String),
+LL | |     GetIData(String),
+LL | |     DeleteUnpubIData(String),
+LL | | }
+   | |_^
+   |
+   = help: remove the postfixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same postfix: `HIData`
+  --> $DIR/enum_variants.rs:142:1
+   |
+LL | / enum HIDataRequest {
+LL | |     PutHIData(String),
+LL | |     GetHIData(String),
+LL | |     DeleteUnpubHIData(String),
+LL | | }
+   | |_^
+   |
+   = help: remove the postfixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same prefix: `_Type`
+  --> $DIR/enum_variants.rs:162:5
+   |
+LL | /     enum DoLint {
+LL | |         _TypeCreate,
+LL | |         _TypeRead,
+LL | |         _TypeUpdate,
+LL | |         _TypeDestroy,
+LL | |     }
+   | |_____^
+   |
+   = help: remove the prefixes and use full paths to the variants instead of glob imports
+
+error: all variants have the same postfix: `Type`
+  --> $DIR/enum_variants.rs:169:5
+   |
+LL | /     enum DoLintToo {
+LL | |         _CreateType,
+LL | |         _UpdateType,
+LL | |         _DeleteType,
+LL | |     }
+   | |_____^
+   |
+   = help: remove the postfixes and use full paths to the variants instead of glob imports
 
-error: aborting due to 10 previous errors
+error: aborting due to 14 previous errors