mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 08:57:30 +00:00
15 lines
408 B
Text
15 lines
408 B
Text
error: enum with no variants
|
|
--> $DIR/empty_enum.rs:4:1
|
|
|
|
|
LL | enum Empty {}
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::empty-enum` implied by `-D warnings`
|
|
help: consider using the uninhabited type `!` (never type) or a wrapper around it to introduce a type which can't be instantiated
|
|
--> $DIR/empty_enum.rs:4:1
|
|
|
|
|
LL | enum Empty {}
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|