mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
19 lines
477 B
Text
19 lines
477 B
Text
|
error: all variants have the same postfix: `Foo`
|
||
|
--> $DIR/enum_variant_names.rs:7:1
|
||
|
|
|
||
|
LL | / enum Foo2 {
|
||
|
LL | |
|
||
|
LL | | AFoo,
|
||
|
LL | | BFoo,
|
||
|
... |
|
||
|
LL | | EFoo,
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
|
||
|
= help: remove the postfixes and use full paths to the variants instead of glob imports
|
||
|
= note: `-D clippy::enum-variant-names` implied by `-D warnings`
|
||
|
= help: to override `-D warnings` add `#[allow(clippy::enum_variant_names)]`
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|