rust/tests/ui/exhaustive_enums.stderr
2021-01-21 13:34:44 -08:00

29 lines
559 B
Plaintext

error: enums should not be exhaustive
--> $DIR/exhaustive_enums.rs:10:1
|
LL | / pub enum Exhaustive {
LL | | Foo,
LL | | Bar,
LL | | Baz,
LL | | Quux(String),
LL | | }
| |_^
|
note: the lint level is defined here
--> $DIR/exhaustive_enums.rs:3:9
|
LL | #![deny(clippy::exhaustive_enums)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
help: try adding #[non_exhaustive]
|
LL | #[non_exhaustive]
LL | pub enum Exhaustive {
LL | Foo,
LL | Bar,
LL | Baz,
LL | Quux(String),
...
error: aborting due to previous error